/* 移动端样式 - 专为手机优化的响应式设计 */

/* 导航菜单 */
.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--primary-color);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    max-height: 300px;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a {
    display: block;
    padding: 1rem 1.25rem;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.mobile-nav a:active {
    background: rgba(255,255,255,0.1);
}
:root {
    --primary-color: #022A99;
    --secondary-color: #FC8416;
    --dark-color: #0a0a0a;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f7fafc;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 顶部导航 */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    z-index: 1000;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.header-btn {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Hero Section */
.mobile-hero {
    padding: 80px 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #0442c9);
    color: white;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

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

.mobile-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(255,255,255,0.15);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.hero-product {
    margin-top: 1.5rem;
    text-align: center;
}

.hero-product img {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
}

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

.btn-primary {
    background: var(--secondary-color);
    color: white;
    width: 100%;
    max-width: 280px;
}

.btn-primary:active {
    transform: scale(0.98);
    background: #e57700;
}

.hint {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.75rem;
}

/* 通用区块 */
.mobile-section {
    padding: 2.5rem 1.25rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* 架构栈 */
.arch-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.arch-layer {
    background: linear-gradient(135deg, var(--primary-color), #0442c9);
    border-radius: 12px;
    padding: 1.25rem;
    color: white;
}

.layer-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.layer-num {
    background: var(--secondary-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.layer-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.arch-layer p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.layer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.layer-tags span {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

.arch-arrow {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: bold;
}

/* 产品展示 */
.product-showcase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 产品展示 2x2 网格 */
.product-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.product-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    border-radius: 8px;
}

.product-card span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.375rem;
}

/* 系统界面截图 */
.system-screens {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.screen-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #eee;
}

.screen-card span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* 安全可控 */
.security-content {
    text-align: left;
}

.security-intro {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.security-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.security-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.security-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.security-text h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.375rem;
}

.security-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.security-conclusion {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.8;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(2, 42, 153, 0.08), rgba(252, 132, 22, 0.08));
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

/* 核心能力 */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 对比表格 */
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-width: 280px;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

.comparison-table th:first-child {
    text-align: left;
    background: #011a6e;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #333;
    background: #f8fafc;
}

.comparison-table .highlight-col {
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
}

.comparison-tip {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.comparison-tip p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.btn-view-desktop {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* CTA Section */
.mobile-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 1.25rem;
    text-align: center;
}

.mobile-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.mobile-cta p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

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

.qrcode-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.qrcode-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 15px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 100;
    text-align: center;
}

.qrcode-wrapper:hover .qrcode-popup {
    display: block;
}

.qrcode-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: white;
}

.qrcode-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.qrcode-popup p {
    color: #333;
    font-size: 0.85rem;
    margin: 8px 0 0;
}

.qrcode-hint {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1.5rem;
}

footer p {
    font-size: 0.8rem;
    opacity: 0.8;
}

footer .icp {
    margin-top: 0.5rem;
}

footer .icp a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: underline;
    font-size: 0.8rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    padding: 10px;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-section {
    animation: fadeIn 0.5s ease forwards;
}

.mobile-section:nth-child(2) { animation-delay: 0.1s; }
.mobile-section:nth-child(3) { animation-delay: 0.2s; }
.mobile-section:nth-child(4) { animation-delay: 0.3s; }
