/* ===== 变量定义 ===== */
:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --accent-cyan: #00ffd5;
    --accent-green: #00ff88;
    --bg-primary: #0a0f1a;
    --bg-secondary: #0f1629;
    --bg-card: #111827;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(0, 212, 255, 0.12);
    --border-hover: rgba(0, 212, 255, 0.35);
    --gradient-1: linear-gradient(135deg, #00d4ff, #00ffd5);
    --gradient-2: linear-gradient(135deg, #0099ff, #00d4ff);
    --gradient-3: linear-gradient(135deg, #0f1629, #1a2744);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 基础重置 ===== */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ===== 容器 ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== 渐变文字 ===== */
.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-1);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.45);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border-hover);
}
.btn-outline:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* ===== Section 通用 ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.3;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* ===== 导航栏 ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.8));
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.08);
}

.nav-search-container {
    display: none;
    padding: 0 40px 12px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-search {
    position: relative;
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px;
    transition: var(--transition);
    width: 220px;
}
.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 212, 255, 0.12);
    border: none;
    border-radius: 6px;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}
.search-btn:hover {
    background: rgba(0, 212, 255, 0.25);
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 70px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 100, 200, 0.18) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(0, 200, 150, 0.12) 0%, transparent 50%),
                var(--bg-primary);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.07);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 28px;
}

.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title br { display: block; }

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero 右侧电机动画 */
.hero-visual {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.motor-3d {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.motor-core {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.motor-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: spin linear infinite;
}

.ring-1 {
    width: 180px; height: 180px;
    border-color: rgba(0, 212, 255, 0.3);
    animation-duration: 8s;
}
.ring-2 {
    width: 240px; height: 240px;
    border-color: rgba(0, 255, 213, 0.2);
    border-style: dashed;
    animation-duration: 12s;
    animation-direction: reverse;
}
.ring-3 {
    width: 300px; height: 300px;
    border-color: rgba(0, 150, 255, 0.15);
    animation-duration: 18s;
}

@keyframes spin { to { transform: rotate(360deg); } }

.motor-center {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
    50% { filter: drop-shadow(0 0 40px rgba(0, 255, 213, 1)); }
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.15);
    animation: spin-slow linear infinite;
}

.orbit-1 { width: 340px; height: 340px; animation-duration: 20s; }
.orbit-2 { width: 360px; height: 360px; animation-duration: 30s; animation-direction: reverse; }
.orbit-3 { width: 380px; height: 380px; animation-duration: 40s; }

@keyframes spin-slow { to { transform: rotate(360deg); } }

.data-flow {
    position: absolute;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.flow-1 { top: 20px; right: 10px; animation: float 4s ease-in-out infinite; }
.flow-2 { bottom: 60px; left: 5px; animation: float 5s ease-in-out infinite 1s; }
.flow-3 { bottom: 20px; right: 40px; animation: float 3.5s ease-in-out infinite 0.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== 产品展示 ===== */
.products-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.card-image { height: 200px; overflow: hidden; }

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #0a1628, #1a2744);
}

.img-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.img-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--primary);
}

/* ===== 数据统计 ===== */
.stats-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 255, 136, 0.08) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.stats-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
    padding: 35px 30px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-block:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.4);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.6));
    line-height: 1;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    min-height: 3.2rem;
}

.stat-unit {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-top: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.stats-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ===== 新闻中心 ===== */
.news-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}
.news-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.news-image { height: 260px; overflow: hidden; }

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-content { padding: 24px; }

.news-category {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    font-size: 0.78rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
}
.news-item:hover {
    border-color: var(--border-hover);
    background: rgba(0, 212, 255, 0.04);
}

.news-date {
    flex-shrink: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-top: 3px;
}

.news-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.news-item-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 核心优势 ===== */
.features-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
}
.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 14px;
    margin-bottom: 22px;
    color: var(--primary);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== 行动召唤 ===== */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 100, 200, 0.2) 0%, rgba(0, 200, 150, 0.15) 100%);
}
.cta-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 40px;
}

.cta-title {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 18px;
}

.cta-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border);
}

.footer-brand .logo { margin-bottom: 18px; }

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a,
.footer-col li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); transition: var(--transition); }
.footer-bottom a:hover { color: var(--primary); }

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 3rem; }
}

@media (max-width: 1024px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-desc { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-visual { flex: none; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
    .search-form { width: 180px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav-container { padding: 0 15px; }
    .footer-container { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-search-container { display: block; padding: 0 15px 12px; }
    .nav-search-container .search-form { width: 100%; }
    .nav-toggle { display: flex; }
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
    .stat-block { min-width: 160px; flex-basis: 45%; }
    .cta-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .stat-block { flex-basis: 100%; max-width: 100%; }
    .hero-visual { display: none; }
}
