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

:root {
    --container: 1180px;
    --primary: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ef5350;
    --secondary: #1976d2;
    --success: #388e3c;
    --warning: #f57c00;
    --danger: #d32f2f;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --border-light: #e0e0e0;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --duration: 0.3s;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.image-box,
.composer-media,
.deck-media,
.preview-media,
.local-img-frame,
.module-media,
.switch-media,
.assembly-image .image-box {
    overflow: visible;
    line-height: 0;
    padding: 0;
}

.image-box img,
.composer-media img,
.deck-media img,
.preview-media img,
.local-img-frame img,
.module-media img,
.switch-media img,
.assembly-image .image-box img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

/* 进度线 */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    width: 0;
    z-index: 1000;
    transition: width var(--duration);
}

/* 顶部浮层 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 999;
    transition: all var(--duration);
    padding: 12px 0;
}

.header.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    position: relative;
}

.header-left {
    flex: 0 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.brand-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.header-center {
    flex: 1;
    text-align: center;
}

.composer-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
}

.module-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-light);
    transition: all var(--duration);
    border-radius: var(--radius-sm);
}

.module-btn:hover {
    color: var(--primary);
    background: rgba(211, 47, 47, 0.05);
}

.module-btn.active {
    color: var(--primary);
    background: rgba(211, 47, 47, 0.1);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 1px;
    transition: all var(--duration);
}

/* 移动端模块面板 */
.mobile-module-panel {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-light);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 998;
    animation: slideUp var(--duration);
}

.mobile-module-panel.open {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: white;
}

.panel-header span {
    font-weight: 600;
    font-size: 14px;
}

.panel-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-light);
}

.panel-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.panel-link {
    display: block;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
    text-decoration: none;
    transition: all var(--duration);
}

.panel-link:active {
    background: rgba(211, 47, 47, 0.05);
    color: var(--primary);
}

/* 主容器 */
.main-content {
    padding-top: 70px;
}

.section {
    padding: var(--spacing-xxl) 0;
    border-bottom: 1px solid var(--border-light);
}

.section h2 {
    font-size: 32px;
    margin-bottom: var(--spacing-xxl);
    color: var(--text-dark);
    text-align: center;
}

/* Hero 部分 */
.hero-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.02) 0%, rgba(25, 118, 210, 0.02) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    margin-bottom: var(--spacing-xxl);
}

.hero-label {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero-text h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--duration);
    font-weight: 600;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

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

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

.hero-warning {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(211, 47, 47, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
}

.warning-icon {
    flex-shrink: 0;
    font-size: 18px;
}

.hero-warning p {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.6;
}

.composer-frame {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.composer-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.module-badges {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.badge {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: white;
    backdrop-filter: blur(10px);
}

.badge-trx {
    background: rgba(211, 47, 47, 0.8);
}

.badge-trc20 {
    background: rgba(25, 118, 210, 0.8);
}

.badge-address {
    background: rgba(56, 142, 60, 0.8);
}

.badge-record {
    background: rgba(245, 124, 0, 0.8);
}

.hero-status {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

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

.status-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.status-bar {
    width: 100%;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.status-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    width: 100%;
}

/* 资产模块部分 */
.asset-composer {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
}

.module-library {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.lib-btn {
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration);
    text-align: left;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

.lib-btn:hover {
    border-color: var(--primary);
    background: rgba(211, 47, 47, 0.02);
}

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

.module-canvas {
    position: relative;
}

.module-card {
    display: none;
    animation: fadeIn var(--duration);
}

.module-card.active {
    display: block;
}

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

.module-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--primary);
}

.module-header h3 {
    font-size: 20px;
    color: var(--text-dark);
}

.module-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.module-text h4 {
    font-size: 14px;
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    color: var(--text-dark);
    font-weight: 600;
}

.module-text ul {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.module-text li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.module-text li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.module-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    min-height: 300px;
    padding: var(--spacing-md);
}

.module-media img {
    max-width: 100%;
    height: auto;
}

/* TRX/TRC20 卡组部分 */
.card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
}

.card-set-title {
    font-size: 18px;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary);
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.flip-card {
    perspective: 1000px;
    height: 200px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    text-align: center;
}

.flip-card-front {
    background: white;
    color: var(--text-dark);
}

.flip-card-back {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.card-icon {
    font-size: 32px;
    margin-bottom: var(--spacing-md);
}

.flip-card-front h4 {
    font-size: 16px;
    margin: 0;
}

.flip-card-back p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* 账户拼装板部分 */
.assembly-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
}

.puzzle-pieces {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.puzzle-piece {
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    transition: all var(--duration);
    cursor: pointer;
}

.puzzle-piece:hover {
    background: rgba(211, 47, 47, 0.05);
    border-style: solid;
    transform: translateY(-4px);
}

.piece-icon {
    font-size: 28px;
    margin-bottom: var(--spacing-md);
}

.puzzle-piece h4 {
    font-size: 16px;
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-dark);
}

.puzzle-piece p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.piece-expand {
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    transition: all var(--duration);
}

.piece-expand:hover {
    border-color: var(--primary);
    background: rgba(211, 47, 47, 0.02);
}

.piece-detail {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.piece-detail ul {
    list-style: none;
}

.piece-detail li {
    padding: 6px 0;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

.assembly-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.assembly-image .image-box {
    width: 100%;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

/* 安全模块部分 */
.security-switches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.switch-group {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration);
}

.switch-group.open {
    border-color: var(--primary);
}

.security-switch {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all var(--duration);
}

.security-switch:hover {
    background: rgba(211, 47, 47, 0.02);
}

.switch-label {
    flex: 1;
    text-align: left;
}

.switch-icon {
    font-size: 16px;
}

.switch-content {
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.risk-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.risk-critical {
    background: rgba(211, 47, 47, 0.1);
    color: var(--danger);
}

.risk-high {
    background: rgba(245, 124, 0, 0.1);
    color: var(--warning);
}

.risk-medium {
    background: rgba(244, 193, 31, 0.1);
    color: #f0ad4e;
}

.risk-low {
    background: rgba(56, 142, 60, 0.1);
    color: var(--success);
}

.switch-content h4 {
    font-size: 14px;
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    color: var(--text-dark);
}

.switch-content p,
.switch-content ul {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.switch-content ul {
    list-style: none;
    padding: 0;
}

.switch-content li {
    padding: 6px 0 6px 20px;
    position: relative;
}

.switch-content li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* 链上记录排布器 */
.records-composer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
}

.fields-selector {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.field-btn {
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration);
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

.field-btn:hover {
    border-color: var(--primary);
    background: rgba(211, 47, 47, 0.02);
}

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

.field-display {
    position: relative;
}

.field-info {
    display: none;
    animation: fadeIn var(--duration);
}

.field-info.active {
    display: block;
}

.field-info h4 {
    font-size: 16px;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.field-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.field-info ul {
    list-style: none;
    padding: 0;
}

.field-info li {
    padding: 8px 0 8px 24px;
    position: relative;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.field-info li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary);
    font-weight: bold;
}

/* App 预览卡组 */
.preview-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.preview-deck {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.deck-item {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn var(--duration);
}

.deck-item.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.deck-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.deck-media img {
    max-width: 100%;
    height: auto;
    max-height: 100%;
}

.preview-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-slide {
    display: none;
    animation: fadeIn var(--duration);
}

.info-slide.active {
    display: block;
}

.info-slide h3 {
    font-size: 18px;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.info-slide p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.preview-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.preview-controls button {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--duration);
}

.preview-controls button:hover {
    background: var(--primary-dark);
}

.slide-counter {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

/* Web3 组合方案 */
.solutions-composer {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xxl);
}

.scenario-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.scenario-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-light);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration);
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 600;
}

.scenario-btn:hover {
    border-color: var(--primary);
    background: rgba(211, 47, 47, 0.02);
}

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

.solution-display {
    position: relative;
}

.solution-card {
    display: none;
    animation: fadeIn var(--duration);
}

.solution-card.active {
    display: block;
}

.solution-card h3 {
    font-size: 20px;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary);
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.solution-section h4 {
    font-size: 14px;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    font-weight: 600;
}

.solution-section ul {
    list-style: none;
    padding: 0;
}

.solution-section li {
    padding: 8px 0 8px 20px;
    position: relative;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.solution-section li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* 操作前锁定模块 */
.lockdown-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.lockdown-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
}

.lockdown-item {
    padding: var(--spacing-lg);
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.lockdown-item:hover {
    border-color: var(--primary);
    background: rgba(211, 47, 47, 0.02);
}

.lockdown-item.locked {
    border-color: var(--success);
    background: rgba(56, 142, 60, 0.05);
}

.lock-icon {
    font-size: 32px;
}

.lockdown-item.locked .lock-icon {
    animation: pulse var(--duration);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.lock-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.lock-status {
    font-size: 11px;
    color: var(--text-light);
}

.lockdown-item.locked .lock-status:before {
    content: "✓ 已锁定";
    color: var(--success);
}

.lockdown-message {
    text-align: center;
    padding: var(--spacing-lg);
}

.locked-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: rgba(56, 142, 60, 0.1);
    border-radius: var(--radius-lg);
    color: var(--success);
    font-size: 14px;
    font-weight: 600;
}

.check-icon {
    font-size: 20px;
}

/* FAQ 部分 */
.faq-library {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.faq-category {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-category-title {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-light);
    border-bottom: 2px solid var(--primary);
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
    cursor: pointer;
    font-weight: 600;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all var(--duration);
}

.faq-question:hover {
    background: rgba(211, 47, 47, 0.02);
    color: var(--primary);
}

.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-md) var(--spacing-lg);
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
    background: var(--bg-light);
    animation: slideDown var(--duration);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
    margin-top: var(--spacing-xxl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    font-size: 14px;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.footer-section p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--duration);
    font-size: 13px;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition: all var(--duration);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* 图片预览模态框 */
.image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
}

.image-preview-modal.show {
    display: block;
}

.preview-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn var(--duration);
}

.preview-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    animation: zoomIn var(--duration);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.preview-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration);
}

.preview-close:hover {
    color: var(--primary);
}

.preview-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 16px;
        --spacing-xl: 24px;
    }

    .section h2 {
        font-size: 24px;
        margin-bottom: var(--spacing-xl);
    }

    .header-right {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .asset-composer {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .module-library {
        flex-direction: row;
        overflow-x: auto;
        gap: var(--spacing-sm);
    }

    .lib-btn {
        flex-shrink: 0;
        min-width: 120px;
    }

    .module-content {
        grid-template-columns: 1fr;
    }

    .card-group {
        grid-template-columns: 1fr;
    }

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

    .flip-card {
        height: 150px;
    }

    .assembly-board {
        grid-template-columns: 1fr;
    }

    .security-switches {
        grid-template-columns: 1fr;
    }

    .switch-group {
        border: 1px solid var(--border-light);
    }

    .records-composer {
        grid-template-columns: 1fr;
    }

    .fields-selector {
        flex-direction: row;
        overflow-x: auto;
        gap: var(--spacing-sm);
    }

    .field-btn {
        flex-shrink: 0;
        min-width: 100px;
    }

    .preview-gallery {
        grid-template-columns: 1fr;
    }

    .scenario-buttons {
        flex-direction: column;
    }

    .scenario-btn {
        width: 100%;
    }

    .solution-content {
        grid-template-columns: 1fr;
    }

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

    .faq-library {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 414px) {
    :root {
        --spacing-md: 12px;
        --spacing-lg: 12px;
        --spacing-xl: 16px;
        --spacing-xxl: 24px;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .hero-text h1 {
        font-size: 22px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .module-card {
        padding: 0;
    }

    .module-header {
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }

    .module-header h3 {
        font-size: 16px;
    }

    .lockdown-items {
        grid-template-columns: 1fr;
    }

    .hero-status {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .preview-controls {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .preview-controls button {
        flex: 1;
        min-width: 100px;
    }
}
