/* VIBEC 网站样式 - 现代化设计 */

/* ===== 基础样式重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #0ea5e9;
    --accent-color: #0284c7;
    --success-color: #059669;
    --text-dark: #0f172a;
    --text-mid: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.08), 0 1px 3px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 24px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 16px 40px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.07);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* ===== 导航栏 ===== */
.navbar {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 0.875rem 0;
    box-shadow: 0 1px 0 var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

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

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.nav-brand .tagline {
    font-size: 0.78rem;
    color: var(--text-light);
    letter-spacing: 0.01em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    overflow: visible;
}

.nav-menu a {
    color: var(--text-mid);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
    transition: background 0.15s, color 0.15s;
}

.nav-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    opacity: 1;
}


/* 下载下拉菜单 */
.nav-dropdown {
    position: relative;
    overflow: visible;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown-trigger::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.3rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s;
    opacity: 0.6;
}

.nav-dropdown.open .nav-dropdown-trigger::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 150px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-xl);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0 0;
    z-index: 1001;
}

.nav-dropdown-menu,
.nav-dropdown-menu li {
    list-style: none !important;
    margin: 0;
    padding: 0;
    padding-left: 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    opacity: 1;
}

/* ===== Hero 区域 ===== */
.hero {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 5rem 0 4.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-mid);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 1.75rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.purchase-section-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.purchase-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.purchase-cards-full .purchase-card {
    padding: 1.5rem 1.5rem;
}

.purchase-cards-full .purchase-card-icon-wrap {
    width: 48px;
    height: 48px;
}

.purchase-cards-full .purchase-card-name {
    font-size: 1.05rem;
}

.purchase-cards-full .purchase-card-desc {
    font-size: 0.825rem;
}

.purchase-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.125rem 1.25rem;
    border-radius: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

.purchase-card-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
}

.purchase-card-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38);
    color: #fff;
}

.purchase-card-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.purchase-card-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #bfdbfe;
    color: var(--text-dark);
}

.purchase-card-platform {
    position: absolute;
    top: 0.625rem;
    right: 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

.purchase-card-platform-tmall {
    background: rgba(255, 80, 0, 0.1);
    color: #cc3d00;
}

.purchase-card-icon-wrap {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
}

.purchase-card-secondary .purchase-card-icon-wrap {
    background: #eff6ff;
    color: var(--primary-color);
}

.purchase-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
    min-width: 0;
}

.purchase-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.purchase-card-primary .purchase-card-name {
    color: #fff;
}

.purchase-card-secondary .purchase-card-name {
    color: var(--text-dark);
}

.purchase-card-desc {
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.purchase-card-primary .purchase-card-desc {
    color: rgba(255, 255, 255, 0.75);
}

.purchase-card-secondary .purchase-card-desc {
    color: var(--text-light);
}

.purchase-card-arrow {
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.purchase-card-primary .purchase-card-arrow {
    color: rgba(255, 255, 255, 0.7);
}

.purchase-card-secondary .purchase-card-arrow {
    color: var(--text-light);
}

.purchase-card:hover .purchase-card-arrow {
    transform: translateX(3px);
}

.purchase-card-secondary:hover .purchase-card-arrow {
    color: var(--primary-color);
}

/* 注意事项提示 */
.purchase-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.625rem;
    text-align: left;
}

.purchase-notice-icon {
    flex-shrink: 0;
    margin-top: 0.05rem;
    color: #92400e;
}

.purchase-notice span {
    font-size: 0.825rem;
    color: #78350f;
    line-height: 1.6;
}

.purchase-notice strong {
    font-weight: 700;
    color: #92400e;
}

.purchase-notice a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(29, 78, 216, 0.3);
}

.purchase-notice a:hover {
    border-bottom-color: #1d4ed8;
}

/* ===== 底部购买 CTA 区块 ===== */
.section-buy-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 5rem 0;
    text-align: center;
}

.buy-cta-title {
    color: #fff !important;
}

.buy-cta-title::after {
    background: rgba(255, 255, 255, 0.35) !important;
}

.buy-cta-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: -1.75rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* 深色背景上的购买卡片 — 白色背景 */
.purchase-card-on-dark {
    background: #fff;
    color: var(--text-dark);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.purchase-card-on-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
    color: var(--text-dark);
}

.purchase-card-on-dark .purchase-card-name {
    color: var(--text-dark);
}

.purchase-card-on-dark .purchase-card-desc {
    color: var(--text-light);
}

.purchase-card-on-dark .purchase-card-arrow {
    color: var(--text-light);
}

.purchase-card-on-dark:hover .purchase-card-arrow {
    color: var(--primary-color);
}

/* 平台标签 — 深色背景版 */
.purchase-card-platform-light {
    background: #eff6ff;
    color: #1d4ed8;
}

.purchase-card-platform-tmall-light {
    background: #fff7ed;
    color: #c2410c;
}

/* 图标区域 — 深色背景卡片内 */
.purchase-card-icon-on-dark {
    background: #eff6ff;
    color: var(--primary-color);
}

.purchase-card-icon-on-dark.purchase-card-icon-peripheral {
    background: #f0fdf4;
    color: #059669;
}

/* 注意事项提示框 — 深色背景版 */
.purchase-notice-on-dark {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.purchase-notice-on-dark .purchase-notice-icon {
    color: rgba(255, 255, 255, 0.8);
}

.purchase-notice-on-dark span {
    color: rgba(255, 255, 255, 0.8);
}

.purchase-notice-on-dark strong {
    color: #fff;
    font-weight: 700;
}

.purchase-notice-on-dark a {
    color: #bfdbfe;
    border-bottom-color: rgba(191, 219, 254, 0.4);
}

.purchase-notice-on-dark a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-mid);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* ===== 章节样式 ===== */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--bg-light);
}

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

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.875rem auto 0;
    border-radius: 2px;
    opacity: 0.7;
}

/* ===== 内容盒子 ===== */
.content-box {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.content-box .lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* ===== 特性网格 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.875rem;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid var(--border-color);
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #bfdbfe;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== 详细说明区域 ===== */
.detail-block {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.detail-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-block h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-dark);
}

.detail-block p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===== 规格网格 ===== */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.spec-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.spec-item h4 {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    color: var(--primary-color) !important;
}

.spec-item ul {
    list-style: none;
    padding-left: 0;
}

.spec-item li {
    padding: 0.375rem 0 0.375rem 1.5rem;
    position: relative;
    color: var(--text-light);
}

.spec-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

/* ===== 应用场景 ===== */
.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.application-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.875rem;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s, transform 0.2s;
}

.application-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #bfdbfe;
}

.application-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.application-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.app-card-icon {
    width: 44px;
    height: 44px;
    background: #eff6ff;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ===== 视频容器 ===== */
.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-link {
    display: block;
    text-decoration: none;
}

.video-placeholder {
    background: var(--text-dark);
    padding: 4rem;
    border-radius: 0.875rem;
    text-align: center;
    color: white;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
}

.video-placeholder:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-xl);
    background: #1e293b;
}

.play-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    color: var(--primary-light);
}

.video-placeholder p {
    font-size: 1.125rem;
    font-weight: 500;
    opacity: 0.9;
}

/* ===== 联系我们 ===== */
.contact-box {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.company-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.contact-info {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1.125rem;
    color: var(--text-dark);
}

.contact-note {
    margin-top: 1rem;
    color: var(--text-light);
    font-style: italic;
}

/* ===== 购买部分样式 ===== */
.purchase-section {
    background: #fef2f2;
    padding: 2rem;
    border-radius: 0.875rem;
    margin-top: 2rem;
    text-align: center;
    border: 1px solid #fecaca;
}

.purchase-section h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.purchase-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.btn-purchase {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2.25rem;
    background: #dc2626;
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
    cursor: pointer;
}

.btn-purchase:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
    background: #b91c1c;
}

.btn-purchase svg {
    flex-shrink: 0;
}

/* ===== 下载页面样式 ===== */
.download-section {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

.download-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.download-page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.download-page-desc {
    font-size: 1.125rem;
    color: var(--text-light);
}

.download-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.download-two-column > .download-block {
    min-width: 0; /* 防止 grid 子项溢出 */
}

.download-block {
    margin-bottom: 0;
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.download-block:last-child {
    margin-bottom: 0;
}

.download-header {
    text-align: center;
    margin-bottom: 2rem;
}

.download-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.download-description {
    font-size: 1.125rem;
    color: var(--text-light);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.download-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.download-icon {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.download-info {
    flex: 1;
}

.download-filename {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    word-break: break-all;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.meta-item svg {
    flex-shrink: 0;
}

.download-stats {
    background: var(--primary-color);
    padding: 1.25rem;
    border-radius: 0.625rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.stat-item svg {
    flex-shrink: 0;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-left: auto;
}

.stat-unit {
    font-size: 0.875rem;
    opacity: 0.9;
}

.download-actions {
    margin-top: auto;
}

.btn-download-file {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-download-file:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-download-file svg {
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* ===== 图片展示区域 ===== */
.image-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.image-gallery-item {
    background: var(--bg-white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    width: 100%;
}

.image-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.image-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: var(--bg-white);
}

/* APP截图展示 */
.app-screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.app-screenshot-item {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    border: 3px solid var(--bg-light);
}

.app-screenshot-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.app-screenshot-item img {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    object-fit: contain;
    background: var(--bg-white);
}

/* 设备图片展示 */
.device-showcase {
    margin-top: 2rem;
    text-align: center;
}

.device-image {
    display: inline-block;
    max-width: 800px;
    width: 100%;
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s;
    border: 3px solid var(--bg-light);
}

.device-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.device-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ===== 页脚 ===== */
.footer {
    background: #0f172a;
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.7;
}

.footer a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.15s;
}

.footer a:hover {
    color: white;
    text-decoration: none;
}

/* ===== 导航栏品牌链接 ===== */
.nav-brand-link {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}

.nav-brand-link:hover {
    opacity: 0.85;
}

/* 导航激活状态 */
.nav-menu a.active {
    background: #eff6ff;
    color: var(--primary-color);
    font-weight: 600;
}

/* 汉堡菜单按钮（移动端） */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 0.375rem;
}

.nav-toggle:hover {
    background: var(--bg-light);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-mid);
    border-radius: 2px;
    transition: all 0.25s;
}

/* ===== 页面 Hero（子页面标题区） ===== */
.page-hero {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 2.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.page-hero-desc {
    font-size: 1rem;
    color: var(--text-light);
}

/* ===== 按钮：outline 变体 ===== */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    cursor: pointer;
}

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

/* ===== 快速入口网格 ===== */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.quick-link-card {
    background: var(--bg-white);
    padding: 1.75rem 1.5rem;
    border-radius: 0.875rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-dark);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    cursor: pointer;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #bfdbfe;
}

.quick-link-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-link-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.quick-link-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.quick-link-arrow {
    color: var(--primary-color);
    margin-top: auto;
    padding-top: 0.75rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.quick-link-card:hover .quick-link-arrow {
    transform: translateX(3px);
}

/* ===== 外设支持页 ===== */
.peripheral-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.pstat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid transparent;
}

.pstat-supported { border-top-color: var(--success-color); }
.pstat-testing { border-top-color: #f59e0b; }
.pstat-planned { border-top-color: #94a3b8; }
.pstat-total { border-top-color: var(--primary-color); }

.pstat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pstat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* 筛选按钮 */
.peripheral-filter {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

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

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 外设分类 */
.peripheral-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.peripheral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.peripheral-card {
    background: var(--bg-white);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.peripheral-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.peripheral-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.peripheral-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.peripheral-model {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: var(--font-mono, monospace);
}

.peripheral-name {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

.peripheral-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-supported {
    background: #d1fae5;
    color: #065f46;
}

.badge-testing {
    background: #fef3c7;
    color: #92400e;
}

.badge-planned {
    background: #f1f5f9;
    color: #475569;
}

.peripheral-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* ===== 帮助文档页 ===== */
.help-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

.help-sidebar {
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
}

.help-sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.help-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.help-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.help-nav-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.help-nav-item.active {
    background: #eff6ff;
    color: var(--primary-color);
    font-weight: 600;
}

.help-nav-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.help-content {
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 2rem 2.5rem;
    min-height: 500px;
}

.help-content-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.help-content-icon {
    font-size: 1.75rem;
}

.help-content-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Markdown 渲染样式 */
.help-markdown {
    line-height: 1.8;
    color: var(--text-dark);
}

.help-markdown h1 { font-size: 1.75rem; font-weight: 700; margin: 2rem 0 1rem; color: var(--text-dark); }
.help-markdown h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--text-dark); padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
.help-markdown h3 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--primary-color); }
.help-markdown h4 { font-size: 1rem; font-weight: 600; margin: 1rem 0 0.5rem; color: var(--text-dark); }
.help-markdown p { margin: 0.75rem 0; color: var(--text-light); }
.help-markdown ul, .help-markdown ol { padding-left: 1.5rem; margin: 0.75rem 0; }
.help-markdown li { margin: 0.4rem 0; color: var(--text-light); }
.help-markdown strong { color: var(--text-dark); font-weight: 600; }
.help-markdown code { background: var(--bg-light); padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.875rem; color: var(--primary-dark); }
.help-markdown pre { background: var(--text-dark); color: #e5e7eb; padding: 1.25rem; border-radius: 0.75rem; overflow-x: auto; margin: 1rem 0; }
.help-markdown pre code { background: none; color: inherit; padding: 0; }
.help-markdown blockquote { border-left: 4px solid var(--primary-light); padding: 0.75rem 1.25rem; margin: 1rem 0; background: var(--bg-light); border-radius: 0 0.5rem 0.5rem 0; }
.help-markdown blockquote p { margin: 0; color: var(--text-light); }
.help-markdown hr { border: none; border-top: 1px solid var(--border-color); margin: 2rem 0; }
.help-markdown a { color: var(--primary-color); text-decoration: none; }
.help-markdown a:hover { text-decoration: underline; }

/* Markdown 表格 */
.help-markdown table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.help-markdown th { background: var(--primary-color); color: white; padding: 0.75rem 1rem; text-align: left; font-weight: 600; }
.help-markdown td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border-color); color: var(--text-light); }
.help-markdown tr:hover td { background: var(--bg-light); }

/* B站视频链接卡片 */
.help-markdown .video-link-card,
a.video-link-card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #00a1d6 0%, #0088b8 100%);
    color: white !important;
    border-radius: 0.75rem;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 161, 214, 0.3);
}

.help-markdown .video-link-card:hover,
a.video-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 161, 214, 0.4);
    text-decoration: none !important;
}

/* ===== 联系页面 ===== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-white);
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
}

.contact-card-icon {
    width: 36px;
    height: 36px;
    color: var(--primary-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-card-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== 视频平台标签 ===== */
.video-platform {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* ===== 页脚改版 ===== */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-brand {
    font-size: 1rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: rgba(255,255,255,0.9);
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.6;
    margin: 0 !important;
}

/* ===== 响应式设计 ===== */
@media (max-width: 900px) {
    /* 帮助文档：切换为上下布局 */
    .help-layout {
        grid-template-columns: 1fr;
    }

    .help-sidebar {
        position: static;
    }

    .help-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .help-nav-item {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.6rem 0.75rem;
    }

    /* 外设统计 */
    .peripheral-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 导航栏移动端：汉堡菜单 */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu > li > a {
        display: block;
        padding: 0.75rem 1.5rem;
        border-radius: 0;
        color: var(--text-mid);
    }

    .nav-menu > li > a.active {
        background: #eff6ff;
        color: var(--primary-color);
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        border-radius: 0;
        padding: 0;
        margin: 0;
    }

    .nav-dropdown-menu a {
        color: var(--text-mid);
        padding: 0.6rem 2.5rem;
    }

    .nav-dropdown-menu a:hover {
        background: #eff6ff;
        color: var(--primary-color);
    }

    .navbar {
        position: sticky;
        overflow: visible;
    }

    .navbar .container {
        position: relative;
        flex-wrap: nowrap;
    }

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

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .page-hero-title {
        font-size: 1.75rem;
    }

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

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

    .features-grid,
    .application-grid {
        grid-template-columns: 1fr;
    }

    .app-screenshots {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .app-screenshot-item img {
        max-height: 400px;
    }

    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .device-image {
        max-width: 500px !important;
    }

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

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    /* 下载页：小屏时改为上下布局 */
    .download-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

    .purchase-cards {
        grid-template-columns: 1fr;
    }

    .purchase-card {
        padding: 1rem 1.125rem;
    }

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

    .section {
        padding: 2rem 0;
    }

    .device-image {
        max-width: 320px !important;
        padding: 0.5rem;
    }

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

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .help-content {
        padding: 1.5rem;
    }

    .help-markdown table {
        font-size: 0.8rem;
    }

    .help-markdown th,
    .help-markdown td {
        padding: 0.5rem 0.6rem;
    }
}

