/* ========================================
   北京晓昀科技集团官网 - 主样式文件
   科技炫酷风 - 深色主题
   ======================================== */

/* 基础变量 */
:root {
    --primary: #00d4ff;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --bg-card-hover: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --gradient-1: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-2: linear-gradient(135deg, #7c3aed 0%, #f59e0b 100%);
    --gradient-3: linear-gradient(90deg, #00d4ff, #7c3aed, #f59e0b);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* 重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 40px;
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero 区域 */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 15s infinite linear;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-circle {
    position: relative;
    width: 300px;
    height: 300px;
}

.circle-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: spin 10s linear infinite;
}

.ring-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    animation: spin 8s linear infinite reverse;
    border-top-color: var(--secondary);
}

.ring-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    animation: spin 6s linear infinite;
    border-top-color: var(--accent);
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.circle-core {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.core-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(10px) rotate(45deg); }
    60% { transform: translateY(5px) rotate(45deg); }
}

/* 通用区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin: 0 auto;
    border-radius: 2px;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: var(--bg-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

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

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.about-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.about-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.about-card p {
    color: var(--text-secondary);
}

/* 业务领域 */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f1419 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
}

.icon-ring {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawRing 3s infinite linear;
}

@keyframes drawRing {
    0%, 100% { stroke-dashoffset: 200; }
    50% { stroke-dashoffset: 0; }
}

.icon-text {
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-features li:last-child {
    border-bottom: none;
}

/* 成功案例 */
.cases {
    padding: 100px 0;
    background: var(--bg-dark);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.case-image {
    height: 200px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-placeholder {
    font-size: 4rem;
    opacity: 0.8;
}

.case-info {
    padding: 25px;
}

.case-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.case-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.case-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gradient-1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 新闻动态 */
.news {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f1419 100%);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.news-date {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-item h4 {
    font-size: 1.3rem;
    margin: 10px 0;
}

.news-item p {
    color: var(--text-secondary);
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: var(--bg-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

/* 页脚 */
.footer {
    padding: 60px 0 30px;
    background: #070a10;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.footer-links h4,
.footer-services h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-services li {
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* 响应式设计 */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .tech-circle {
        width: 200px;
        height: 200px;
    }

    .circle-core {
        width: 70px;
        height: 70px;
    }

    .core-icon {
        font-size: 2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: -1;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .btn {
        width: 100%;
    }
}

/* Products Section */
.products {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f1419 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-1);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-image {
    font-size: 4rem;
    text-align: center;
    margin: 20px 0;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-specs {
    list-style: none;
}

.product-specs li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-specs li:last-child {
    border-bottom: none;
}

/* Warranty Box */
.warranty-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    margin-top: 30px;
}

.warranty-box h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.warranty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.warranty-item {
    text-align: center;
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.warranty-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.warranty-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive for Products */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .warranty-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .warranty-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   全面响应式优化 & 浏览器兼容性
   ======================================== */

/* CSS变量浏览器兼容性回退 */
@supports not (--css-variables: 1) {
    .navbar { background: #0a0e17; }
    .btn-primary { background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%); }
    .hero { background: #0a0e17; }
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
    
    .service-card:active,
    .product-card:active,
    .case-card:active,
    .news-item:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .icon-ring {
        stroke-width: 1.5;
    }
}

/* 安全区域适配（iPhone X及以上刘海屏） */
@supports (padding-top: env(safe-area-inset-top)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    .hero {
        padding-top: calc(80px + env(safe-area-inset-top));
    }
    
    .footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .back-to-top {
        margin-bottom: env(safe-area-inset-bottom);
    }
}

/* 移动端菜单样式 */
.nav-menu.active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 998;
    animation: fadeIn 0.3s ease;
}

.nav-menu.active .nav-link {
    font-size: 1.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 999;
    position: relative;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* 汉堡菜单动画 */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

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

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

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 120vh;
        padding: 100px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu.active {
        gap: 15px;
        padding-top: 60px;
    }
    
    .nav-menu.active .nav-link {
        font-size: 1.2rem;
    }
}

/* ========================================
   细化响应式断点优化
   ======================================== */

/* 平板设备：768px - 968px */
@media (max-width: 968px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .warranty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 大手机：577px - 768px */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .warranty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .product-card {
        padding: 25px 20px;
    }
    
    .warranty-box {
        padding: 30px 20px;
    }
}

/* 中等手机：481px - 576px */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .warranty-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .product-card,
    .case-card,
    .news-item {
        padding: 25px 20px;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .services,
    .products,
    .cases,
    .news,
    .contact {
        padding: 60px 0;
    }
}

/* 小手机：320px - 480px */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-tag {
        font-size: 0.8rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .service-card h3,
    .product-card h3 {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .info-text {
        font-size: 1rem;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .footer-brand p {
        font-size: 0.95rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .footer-logo {
        height: 32px !important;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        right: 15px;
        bottom: 15px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* 超小屏幕优化 */
@media (max-width: 340px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* ========================================
   浏览器特定修复
   ======================================== */

/* Safari修复 */
@supports (-webkit-backdrop-filter: blur(1px)) {
    .navbar {
        background: rgba(10, 14, 23, 0.9);
    }
}

/* Firefox修复 */
@-moz-document url-prefix() {
    .hero-bg {
        background-attachment: scroll;
    }
    
    .circle-core {
        clip-path: none;
    }
}

/* Edge修复 */
@supports (-ms-ime-align: auto) {
    .gradient-text {
        background: var(--primary);
        -webkit-text-fill-color: var(--primary);
    }
}

/* ========================================
   无障碍访问优化
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --primary: #00ffff;
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
    }
    
    .service-card,
    .product-card,
    .case-card {
        border-width: 2px;
    }
}

/* 暗色模式优化（已有基础，增强） */
@media (prefers-color-scheme: dark) {
    /* 当前已是深色主题，保持一致 */
}

@media (prefers-color-scheme: light) {
    /* 如果需要浅色模式支持可以在此添加 */
}

/* 打印样式优化 */
@media print {
    .navbar,
    .hamburger,
    .back-to-top,
    .scroll-indicator,
    .hero-visual,
    .hero-bg {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 30px 0;
    }
    
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    .service-card,
    .product-card,
    .case-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .product-price {
        color: black;
        -webkit-text-fill-color: black;
    }
}

/* ========================================
   软件产品板块样式
   ======================================== */

.software {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f172a 50%, var(--bg-dark) 100%);
    position: relative;
}

.software::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-3);
    opacity: 0.5;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 50px;
    line-height: 1.8;
}

.software-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
}

.software-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px 25px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.software-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.software-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: var(--shadow-glow), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.software-card:hover::before {
    transform: scaleX(1);
}

.software-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.software-card h4 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.4;
    min-height: 3.2em;
}

.software-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.software-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.software-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
    padding: 40px;
    background: rgba(17, 24, 39, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 软件产品响应式 */
@media (max-width: 968px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .software-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .software {
        padding: 60px 0;
    }
    
    .software-grid {
        grid-template-columns: 1fr;
    }
    
    .software-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        justify-content: center;
    }
    
    .section-desc {
        font-size: 1rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .software-card h4 {
        font-size: 1rem;
        min-height: auto;
    }
    
    .software-card {
        padding: 25px 20px;
    }
    
    .stat-num {
        font-size: 2rem;
    }
}
