/* ===== 通用页面样式 ===== */ .page-content { max-width: 1100px; margin: 0 auto; padding: 100px 80px 80px 24px; min-height: 100vh; perspective: 1000px; } .page-header { text-align: center; margin-bottom: 64px; will-change: transform; transition: transform 0.05s linear; } /* 陀螺仪权限按钮 */ #gyro-permission-btn { position: fixed; inset: 0; z-index: 9999; } .gyro-permission-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s ease; } .gyro-permission-card { background: rgba(20, 30, 50, 0.95); border: 1px solid rgba(6, 182, 212, 0.3); border-radius: 20px; padding: 40px 32px 32px; text-align: center; max-width: 320px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); } .gyro-permission-card svg { color: var(--cyan); margin-bottom: 16px; } .gyro-permission-card p { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #fff; } .gyro-permission-card span { font-size: 14px; color: var(--text-secondary); display: block; margin-bottom: 24px; } .gyro-permission-card button { padding: 12px 32px; border-radius: 12px; border: none; background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; } .gyro-permission-card button:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3); } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .page-title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 16px; line-height: 1.2; } .page-desc { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; } /* 特性网格 */ .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; } .feature-card { background: var(--bg-glass); border: 1px solid var(--border); border-radius: 20px; padding: 32px; transition: all 0.4s ease; } .feature-card:hover { border-color: var(--border-hover); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1); } .feature-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--cyan), var(--blue)); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: transform 0.3s; } .feature-card:hover .feature-icon { transform: scale(1.1); } .feature-icon svg { width: 28px; height: 28px; color: #fff; } .feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; } .feature-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; } .feature-tags { display: flex; flex-wrap: wrap; gap: 8px; } .feature-tags span { padding: 4px 12px; border-radius: 6px; background: rgba(6, 182, 212, 0.08); border: 1px solid rgba(6, 182, 212, 0.15); color: var(--cyan-light); font-size: 12px; font-weight: 500; } /* 插件页面 */ .pkg-format { text-align: center; margin-bottom: 48px; } .pkg-card { font-family: 'JetBrains Mono', monospace; font-size: clamp(20px, 4vw, 36px); font-weight: 700; padding: 32px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 16px; display: inline-block; margin-bottom: 32px; } .pkg-symbol { color: var(--text-muted); } .pkg-highlight { color: var(--cyan); } .pkg-version { color: var(--blue); } .pkg-explain { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; } .explain-symbol { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 600; color: var(--cyan-light); margin-bottom: 8px; } .explain-text { font-size: 14px; color: var(--text-muted); } /* 终端演示 */ .install-demo { max-width: 700px; margin: 0 auto 48px; background: rgba(10, 15, 30, 0.9); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; overflow: hidden; } .demo-header { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); } .demo-dot { width: 12px; height: 12px; border-radius: 50%; } .demo-dot-red { background: #ef4444; } .demo-dot-yellow { background: #eab308; } .demo-dot-green { background: #22c55e; } .demo-title { margin-left: 12px; font-size: 13px; color: var(--text-muted); } .demo-body { padding: 20px; font-family: 'JetBrains Mono', monospace; font-size: 14px; } .cmd-line { display: flex; gap: 12px; margin-bottom: 8px; color: var(--text-secondary); } .prompt { color: var(--cyan); font-weight: 600; } .cmd-text { color: #e5e7eb; } .cmd-output { color: #9ca3af; font-size: 13px; margin-bottom: 4px; } .cmd-output.success { color: #34d399; } .cmd-output.indent { padding-left: 24px; } /* 命令表格 */ .pkg-table { max-width: 800px; margin: 0 auto; } .pkg-table-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; text-align: center; } .pkg-table table { width: 100%; border-collapse: collapse; } .pkg-table th, .pkg-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; } .pkg-table th { color: var(--text-muted); font-weight: 600; font-size: 13px; } .pkg-table td code { font-family: 'JetBrains Mono', monospace; background: rgba(6, 182, 212, 0.1); padding: 2px 8px; border-radius: 4px; font-size: 13px; color: var(--cyan-light); } /* 架构图 */ .arch-diagram { max-width: 900px; margin: 0 auto 64px; } .arch-layer { border-radius: 16px; padding: 24px; border: 1px solid var(--border); } .arch-core { background: rgba(6, 182, 212, 0.05); border-color: rgba(6, 182, 212, 0.2); } .arch-label { text-align: center; font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--cyan-light); } .arch-modules { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; } .arch-module { padding: 10px 20px; background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.2); border-radius: 8px; font-size: 14px; font-weight: 500; } .arch-connector { height: 40px; width: 2px; background: linear-gradient(to bottom, var(--cyan), var(--blue)); margin: 0 auto; position: relative; } .arch-connector::before, .arch-connector::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); } .arch-connector::before { top: -6px; } .arch-connector::after { bottom: -6px; } .arch-plugins { background: var(--bg-glass); } .arch-plugin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } .arch-plugin { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; transition: all 0.3s; } .arch-plugin:hover { border-color: var(--border-hover); transform: translateY(-4px); } .arch-plugin-title { font-weight: 700; font-size: 15px; margin-bottom: 12px; color: var(--cyan-light); } .arch-plugin-items { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; } /* 数据流 */ .arch-flow { max-width: 900px; margin: 0 auto; } .arch-flow-title { text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 32px; } .arch-flow-steps { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; } .flow-step { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 12px; font-size: 14px; font-weight: 500; } .flow-step-num { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); font-size: 13px; font-weight: 700; flex-shrink: 0; } .flow-arrow { color: var(--cyan); font-size: 20px; font-weight: 700; } /* 快速开始 */ .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; } .step-card { background: var(--bg-glass); border: 1px solid var(--border); border-radius: 16px; padding: 32px; text-align: center; transition: all 0.3s; } .step-card:hover { border-color: var(--border-hover); transform: translateY(-4px); } .step-number { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); font-size: 20px; font-weight: 800; margin-bottom: 20px; } .step-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; } .step-code { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.8; color: var(--text-secondary); text-align: left; background: rgba(10, 15, 30, 0.6); padding: 16px; border-radius: 8px; } .quickstart-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; } /* 响应式 */ @media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } .arch-plugin-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 768px) { .page-content { padding-left: 24px; } .features-grid { grid-template-columns: 1fr; } .arch-plugin-grid { grid-template-columns: 1fr; } .steps-grid { grid-template-columns: 1fr; } .arch-flow-steps { flex-direction: column; } .flow-arrow { transform: rotate(90deg); } .pkg-explain { grid-template-columns: 1fr; } .pkg-table { overflow-x: auto; } }