/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #e6f0ff;
    --secondary-color: #6c757d;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 导航栏 - 顶级UI设计 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
}

/* 品牌Logo区域 */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.nav-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-brand .logo {
    color: #1a1a1a;
    text-shadow: none;
}

/* 白色文字阴影 - 用于深色背景上的标题 */
.text-white-shadow {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* 导航链接 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 2rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-menu a {
    color: #333;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 60%;
}

.nav-menu a:hover {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.navbar.scrolled .nav-menu a:hover {
    color: var(--primary-color);
    text-shadow: none;
}

/* 右侧功能按钮 */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.nav-login {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s;
    border-radius: 6px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-login {
    color: #333;
}

.nav-login:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.navbar.scrolled .nav-login:hover {
    color: var(--primary-color);
    background: var(--primary-light);
    text-shadow: none;
}

.nav-register {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    background: var(--gradient);
    border-radius: 6px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
    letter-spacing: 0.02em;
}

.nav-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .mobile-menu-btn {
    color: #333;
    text-shadow: none;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.btn-link:hover {
    opacity: 0.8;
}

/* Hero 区域 */
.hero {
    background: url('/static/images/hero-bg-new.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    color: white;
    padding-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 80px);
    width: 100%;
    padding-top: 2vh;
}

.hero-content {
    margin-top: -30px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    line-height: 1.15;
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-highlight {
    display: block;
    background: linear-gradient(135deg, #00d4ff 0%, #ffffff 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-top: 0;
    color: #00d4ff;
}

.hero-features {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    width: 110px;
    height: 80px;
    flex-shrink: 0;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: #00d4ff;
}

.hero-feature .feature-icon {
    font-size: 1.3rem;
    margin-bottom: 0.1rem;
}

.hero-feature .feature-text {
    font-size: 0.7rem;
    color: white;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.hero-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.3rem;
    text-align: center;
    margin-top: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 0;
}

.hero-buttons .btn {
    padding: 0.7rem 1.6rem;
    font-size: 0.95rem;
}

.hero-buttons .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-buttons .btn-secondary:hover {
    background: var(--primary-light);
}

/* 通用区块 */
.section {
    padding: 5rem 0;
}

/* 算力产品区块 - 带背景图 */
#products.section {
    background-image: url('/static/images/products-bg.jpg') !important;
    background-size: contain !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    min-height: 550px !important;
    position: relative;
    margin-top: 3rem;
    padding-top: 2rem;
    background-color: #ffffff;
}

/* 算力产品区块内容层级 */
#products.section .container {
    position: relative;
    z-index: 2;
}

/* x86专业版区块 - 桌面端背景图 */
#x86.pro-section {
    background-image: url('/static/images/x86-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 500px;
    position: relative;
}

#x86.pro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

#x86.pro-section .container {
    position: relative;
    z-index: 2;
}

/* x86 内容定位 - 顶部居中 */
.x86-top-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 20px;
    min-height: 400px;
}

.x86-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.x86-top-center .x86-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.x86-btn {
    font-size: 1rem;
    padding: 0.7rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 算力产品介绍区域 */
.products-intro {
    text-align: center;
    padding: 0.5rem 0 1rem;
    margin-top: -20px;
}

.products-intro .products-desc {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 产品卡片 */
.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* 硬件产品区域 */
.hardware-section {
    background: var(--bg-light);
    padding: 5rem 0;
}

.hardware-layout {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin-top: 40px;
    position: relative;
    left: 0px;
    top: 0;
}

.hardware-card-main {
    width: 600px;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transform: scale(1);
}

.hardware-card-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hardware-card-main:hover img {
    transform: scale(1.05);
}

.hardware-side-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
    flex-shrink: 0;
}

.hardware-card-small {
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    transform: scale(1);
}

.hardware-card-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hardware-card-small:hover img {
    transform: scale(1.05);
}

.hardware-card-small:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 硬件产品卡片悬停效果 - 平滑放大 */
.hardware-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* 软件区块 */
.software-section {
    background: var(--bg-light);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1050px;
    margin: 0 auto;
}

.software-card {
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.mobile-app-card {
    background: url('/static/images/software-bg.jpg') 100% 100% no-repeat;
    position: relative;
    color: white;
    overflow: hidden;
}

.pc-client-card {
    background: url('/static/images/software-bg.jpg') 100% 100% no-repeat;
    position: relative;
    color: white;
}

.nas-plugin-card {
    background: url('/static/images/software-bg.jpg') 100% 100% no-repeat;
    position: relative;
    color: white;
}

.mobile-app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    z-index: 0;
}

.pc-client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    z-index: 0;
}

.nas-plugin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    z-index: 0;
}

.mobile-app-card > * {
    position: relative;
    z-index: 1;
}

.pc-client-card > * {
    position: relative;
    z-index: 1;
}

.nas-plugin-card > * {
    position: relative;
    z-index: 1;
}

.mobile-app-card h3 {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.3rem;
}
.mobile-app-card .software-tag,
.mobile-app-card .software-desc {
    color: white;
}

.pc-client-card h3 {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.3rem;
}
.pc-client-card .software-tag,
.pc-client-card .software-desc {
    color: white;
}

.nas-plugin-card h3 {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.3rem;
}
.nas-plugin-card .software-tag,
.nas-plugin-card .software-desc {
    color: white;
}

.mobile-app-card .software-tag {
    color: #e6f0ff;
}

.pc-client-card .software-tag {
    color: #e6f0ff;
}

.nas-plugin-card .software-tag {
    color: #e6f0ff;
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* 没有背景图的软件卡片默认白色背景 */
.software-card:not(.mobile-app-card):not(.pc-client-card):not(.nas-plugin-card) {
    background: var(--bg-white);
}

@media (max-width: 768px) {
    .software-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.software-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.software-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.software-tag {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.software-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.software-download {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* 愿景区块 */
.vision-section h2 {
    color: #1a1a1a;
    margin-top: 0;
    padding-top: 0;}

.vision-section {
    background: var(--gradient);
    color: white;

    background-image: url('../images/vision-bg.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 20px;}

.vision-section .section-title {
    color: #1a1a1a;
}

.vision-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.vision-card {

    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #1a1a1a;
}

.vision-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.vision-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.vision-card p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* 支持区块 */
.support-section {
    background: var(--bg-white);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.support-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.support-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.support-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-desc {
    color: #999;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover {
    color: #fff;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    padding: 0.5rem 0;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    margin-bottom: 0.5rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: #999;
}

.footer-legal a {
    color: #999;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #fff;
}

/* 软件产品卡片内的产品图 - 基础样式 */
.software-product-img,
.software-product-img-pc,
.software-product-img-nas {
    width: 100%;
    max-height: none;
    height: 280px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.2s ease-out;
    will-change: transform;
}

/* 移动端APP产品图位置 */
.software-product-img {
    bottom: -55px;
}

/* PC客户端产品图位置 */
.software-product-img-pc {
    bottom: -30px;
}

/* NAS插件产品图位置 */
.software-product-img-nas {
    bottom: -30px;
}

/* 软件产品图悬停效果 */
.software-card:hover .software-product-img,
.software-card:hover .software-product-img-pc,
.software-card:hover .software-product-img-nas {
    transform: scale(1.08) translateX(-50%);
}

/* 触摸设备禁用悬停效果，使用active替代 */
@media (hover: none) and (pointer: coarse) {
    .hardware-card:hover {
        transform: none !important;
        box-shadow: var(--shadow) !important;
    }
    
    .software-card:hover .software-product-img,
    .software-card:hover .software-product-img-pc,
    .software-card:hover .software-product-img-nas {
        transform: translateX(-50%);
    }
    
    .software-card:active .software-product-img,
    .software-card:active .software-product-img-pc,
    .software-card:active .software-product-img-nas {
        transform: scale(1.05) translateX(-50%);
    }
}

/* ═══════════════════════════════════════════════
   手机端 ≤768px — 最小修复，不动桌面端
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* 容器不过宽 */
    .container { max-width: 100%; width: 92%; padding: 0; }

    /* 桌面导航隐藏，手机导航显示 */
    .nav-menu { display: none !important; }
    .nav-auth { display: none !important; }
    .mobile-menu-btn {
        display: flex !important;
        align-items: center; justify-content: center;
        width: 36px; height: 36px;
        font-size: 22px; color: #fff;
        cursor: pointer; z-index: 1001;
    }
    /* 覆盖层菜单 */
    .mobile-overlay {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: #fff; z-index: 10000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        display: flex; flex-direction: column;
    }
    .mobile-overlay.active { transform: translateX(0); }
    .mobile-overlay-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 0 16px; height: 54px;
        border-bottom: 1px solid #f0f0f0;
    }
    .mobile-overlay-close {
        font-size: 24px; color: #333; cursor: pointer;
        width: 36px; height: 36px; display: flex;
        align-items: center; justify-content: center;
    }
    .mobile-overlay-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
    .mobile-overlay-logo { width: 28px; height: 28px; border-radius: 6px; }
    .mobile-overlay-title { font-size: 18px; font-weight: 700; color: #1a1a1a; }
    .mobile-overlay-menu { list-style: none; padding: 0; flex: 1; overflow-y: auto; }
    .mobile-overlay-menu li { border-bottom: 1px solid #f5f5f5; }
    .mobile-overlay-menu a {
        display: block; padding: 14px 20px;
        color: #1a1a1a; text-decoration: none;
        font-size: 16px; font-weight: 500;
    }
    .mobile-overlay-menu a:active { background: #f5f5f5; color: #0066ff; }
    .mobile-overlay-auth {
        display: flex; gap: 12px; padding: 16px;
        border-top: 1px solid #f0f0f0;
    }
    .mobile-overlay-btn {
        flex: 1; padding: 13px 0; text-align: center;
        border-radius: 50px; font-size: 16px; font-weight: 600;
        text-decoration: none; transition: all 0.2s;
    }
    .mobile-overlay-btn:first-child {
        background: #f5f5f5; color: #333;
        border: 1px solid #e0e0e0;
    }
    .mobile-overlay-btn:last-child {
        background: linear-gradient(160deg, #0066ff, #00d4ff);
        color: #fff; box-shadow: 0 4px 16px rgba(0,102,255,0.3);
    }
    .mobile-overlay-btn:active { transform: scale(0.97); }

    /* 负margin清零 */
    [style*="margin-top: -"] { margin-top: 0 !important; }
    [style*="margin-top:-"] { margin-top: 0 !important; }

    /* 硬件产品 — 图片全宽展开 */
    .hardware-section { padding: 40px 0 !important; }
    .hardware-layout {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .hardware-card-main {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        border-radius: 12px; overflow: hidden;
    }
    .hardware-card-main img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
        display: block;
    }
    .hardware-side-cards {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .hardware-card-small {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        border-radius: 12px; overflow: hidden;
    }
    .hardware-card-small img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
        display: block;
    }

    /* 愿景 — 2列网格，卡片不变形 */
    .vision-section { padding: 40px 0 !important; }
    .vision-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .vision-card {
        padding: 16px 12px !important;
        border-radius: 12px !important;
        text-align: center !important;
    }
    .vision-icon { font-size: 2rem !important; margin-bottom: 6px !important; }
    .vision-card h3 { font-size: 0.95rem !important; margin-bottom: 4px !important; }
    .vision-card p { font-size: 0.8rem !important; line-height: 1.4 !important; }

    /* 服务支持 */
    .support-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .support-card { padding: 16px !important; border-radius: 12px !important; }

    /* 软件产品 */
    .software-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }
    .software-card { padding: 20px 16px !important; border-radius: 12px !important; }

    /* 关于我们页面 */
    .about-intro {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .about-image { order: -1 !important; }
    .company-visual {
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        max-height: 350px !important;
    }
    .company-visual img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        max-height: 350px !important;
    }
    .stats-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .stat-item { padding: 14px 10px !important; }
    .stat-number { font-size: 1.4rem !important; }
    .advantage-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .advantage-card { padding: 16px !important; border-radius: 12px !important; }
    .culture-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .culture-card { padding: 20px 16px !important; border-radius: 12px !important; }
    .contact-cards {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .contact-card {
        padding: 16px 12px !important;
        text-align: center !important;
        word-break: break-all !important;
    }
    .contact-card p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    .business-tabs { flex-wrap: wrap !important; gap: 6px !important; }
    .tab-btn { padding: 10px 16px !important; font-size: 14px !important; }

    /* 解决方案页面 */
    .solutions-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }
    .solution-card {
        padding: 20px 16px !important;
        text-align: center !important;
    }
    .solution-card p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    .solution-link {
        display: inline-block !important;
        margin-top: 10px !important;
    }
    .enterprise-grid, .developer-grid, .api-cards, .partner-types {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    .enterprise-card, .developer-card, .api-card {
        padding: 16px !important;
        text-align: center !important;
    }
    .industries-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .industry-item { padding: 14px 10px !important; }
    .personal-steps {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    .step-arrow { transform: rotate(90deg) !important; }
    .benefits-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .partner-benefits {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* 联系我们页面 */
    .contact-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .contact-info { padding: 0 !important; border: none !important; }
    .contact-info h2 { font-size: 1.4rem !important; }
    .info-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .info-card {
        display: flex !important;
        align-items: flex-start !important;
        gap: 14px !important;
        padding: 14px !important;
        border-radius: 12px !important;
    }
    .contact-form-section {
        padding: 20px 16px !important;
        border-radius: 12px !important;
    }
    .contact-form-section h2 { font-size: 1.4rem !important; }
    .form-group input, .form-group select, .form-group textarea {
        padding: 12px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }
    .form-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .form-actions .btn { width: 100% !important; border-radius: 50px !important; }
    .social-buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .social-btn { padding: 10px 16px !important; border-radius: 8px !important; font-size: 14px !important; }
    .map-placeholder { height: 250px !important; border-radius: 12px !important; }
    .map-section { padding: 40px 0 !important; overflow: visible !important; }
    .map-section .container { width: 94% !important; }
    .map-section .section-title { margin-bottom: 16px !important; }
    .map-container {
        width: 100% !important;
        overflow: visible !important;
    }
    .map-placeholder {
        height: auto !important;
        min-height: 200px !important;
        overflow: visible !important;
        padding: 30px 16px !important;
        border-radius: 14px !important;
        text-align: center !important;
    }
    .map-content p { font-size: 14px !important; margin: 4px 0 !important; color: #333 !important; }
    .map-content .btn {
        display: inline-block !important;
        width: auto !important;
        padding: 10px 20px !important;
        font-size: 13px !important;
        border-radius: 50px !important;
    }
    .faq-item { border-radius: 8px !important; margin-bottom: 8px !important; }
    .faq-question { padding: 14px !important; }
    .faq-question h3 { font-size: 15px !important; }

    /* 页脚 — 2列网格 */
    .footer { padding: 40px 0 20px !important; }
    .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
        text-align: left !important;
    }
    .footer-section:first-child {
        grid-column: 1 / -1 !important;
        text-align: center !important;
    }
    .footer-logo { justify-content: center !important; font-size: 1.1rem !important; }
    .footer-desc { font-size: 13px !important; color: rgba(255,255,255,0.5) !important; }
    .footer-section h4 { font-size: 15px !important; margin-bottom: 8px !important; }
    .footer-links li { padding: 4px 0 !important; }
    .footer-links a { font-size: 13px !important; color: rgba(255,255,255,0.5) !important; text-decoration: none; }
    .footer-bottom { padding-top: 16px !important; margin-top: 16px !important; text-align: center !important; }
    .footer-bottom p { font-size: 12px !important; color: rgba(255,255,255,0.35) !important; }
    .footer-legal { font-size: 12px !important; gap: 8px !important; justify-content: center !important; }

    /* x86 — 文字置顶，背景图全露 */
    #x86.pro-section {
        min-height: 320px !important;
        padding: 16px 16px 0 16px !important;
        background-size: cover !important;
        background-position: center !important;
        display: flex !important;
        align-items: flex-start !important;
    }
    #x86 .x86-top-center {
        margin-top: 0 !important;
        padding-top: 0 !important;
        min-height: auto !important;
        text-align: center !important;
        width: 100% !important;
    }
    .x86-title {
        font-size: 1.5rem !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
    }
    .x86-subtitle {
        font-size: 13px !important;
        margin: 0 !important;
    }
    .x86-btn {
        margin-top: 8px !important;
        padding: 8px 24px !important;
        font-size: 14px !important;
        border-radius: 50px !important;
    }

    /* 算力产品 — 文字紧凑置顶，背景图保持大小 */
    #products.section {
        background-size: cover !important;
        background-position: center !important;
        min-height: 400px !important;
        padding: 14px 0 0 0 !important;
        display: flex !important;
        align-items: flex-start !important;
    }
    #products .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 92% !important;
    }
    #products .section-title {
        margin: 0 !important; padding: 0 !important;
        font-size: 1.6rem !important; line-height: 1.2 !important;
    }
    #products .section-subtitle {
        margin: 2px 0 0 0 !important;
        font-size: 13px !important;
        opacity: 0.85;
    }
    .products-intro {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        margin: 6px 0 0 0 !important;
        text-align: center !important;
    }
    .products-intro .products-desc {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        color: #fff !important;
        text-shadow: 0 2px 6px rgba(0,0,0,0.7) !important;
        white-space: nowrap !important;
    }
    .products-intro .btn-primary {
        margin: 10px 0 0 0 !important;
        display: inline-block !important;
        width: auto !important;
        padding: 8px 28px !important;
        font-size: 14px !important;
    }

    /* 图片自适应 */
    img { max-width: 100%; height: auto; }

    /* 登录/注册页 */
    .auth-page { align-items: center !important; justify-content: center !important; padding: 70px 16px 40px !important; background-position: center !important; }
    .auth-box { max-width: 100% !important; width: 100% !important; padding: 24px 20px !important; border-radius: 14px !important; background: rgba(255,255,255,0.9) !important; }
    .auth-logo img { width: 50px !important; height: 50px !important; }
    .auth-logo h2 { font-size: 1.2rem !important; }
    .form-group input { padding: 14px !important; font-size: 16px !important; border-radius: 10px !important; border: 1px solid #ddd !important; }
    .auth-btn { width: 100% !important; padding: 14px !important; font-size: 16px !important; border-radius: 50px !important; }
    .agreement-box { font-size: 13px !important; }
    .back-btn { top: 10px !important; left: 10px !important; font-size: 20px !important; }

    /* 表单字号防iOS缩放 */
    input, textarea, select { font-size: 16px; }
}

/* ═══════════════════════════════════════════════
   小屏手机 ≤480px — 仅缩小字号间距，防止重叠
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.35rem !important; }
    .hero-highlight { font-size: 1rem !important; }
    .hero-feature { padding: 8px 5px !important; }
    .hero-feature .feature-icon { font-size: 1.1rem !important; }
    .hero-feature .feature-text { font-size: 0.62rem !important; }
    .hero-desc { font-size: 13px !important; line-height: 1.5 !important; }
    .section-title { font-size: 1.25rem !important; }
    .x86-title { font-size: 1.3rem !important; }
    .software-card h3 { font-size: 1.05rem !important; }
    .vision-card h3 { font-size: 0.85rem !important; }
    .vision-card p { font-size: 0.72rem !important; }
    .footer-section h4 { font-size: 14px !important; }
    .footer-links a { font-size: 12px !important; }
}

/* ═══════════════════════════════════════════════
   超小屏 ≤360px — 进一步缩小，防止挤压
   ═══════════════════════════════════════════════ */
@media (max-width: 360px) {
    .hero-content h1 { font-size: 1.15rem !important; }
    .hero-highlight { font-size: 0.85rem !important; }
    .hero-feature { min-width: 45% !important; padding: 6px 4px !important; }
    .hero-feature .feature-icon { font-size: 1rem !important; }
    .hero-feature .feature-text { font-size: 0.58rem !important; }
    .hero-desc { font-size: 12px !important; }
    .section-title { font-size: 1.1rem !important; }
    .x86-title { font-size: 1.15rem !important; }
    .vision-grid { grid-template-columns: 1fr !important; }
}

