/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 彻底重置所有链接样式 */
a, a:link, a:visited, a:hover, a:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
    background-image: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* 强制重置字体渲染 */
* {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    /* backdrop-filter: blur(20px); */
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    height: 80px;
    gap: 6rem;
}

.nav-brand {
    flex-shrink: 0;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3rem;
    flex-wrap: nowrap;
    align-items: center;
    flex-grow: 1;
}

.nav-item {
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-link {
    color: #888888;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 10px 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    text-shadow: none !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    /* 彻底消除所有可能的阴影和渲染效果 */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    font-feature-settings: normal !important;
    font-variant-ligatures: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    text-stroke: none !important;
    -webkit-text-stroke: none !important;
    text-outline: none !important;
    /* 强制清除任何inherited样式 */
    text-decoration-skip-ink: none !important;
    text-underline-position: unset !important;
    will-change: auto !important;
    transform: none !important;
}

.nav-link:hover {
    color: #ffffff;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-weight: 500;
    /* 保持最简单的字体渲染设置 */
    -webkit-font-smoothing: none !important;
    -moz-osx-font-smoothing: unset !important;
    text-rendering: auto !important;
}

.nav-link:visited,
.nav-link:link,
.nav-link:active,
.nav-link:focus {
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-weight: 500;
    /* 保持最简单的字体渲染设置 */
    -webkit-font-smoothing: none !important;
    -moz-osx-font-smoothing: unset !important;
    text-rendering: auto !important;
}

.nav-link::before,
.nav-link::after {
    content: none !important;
    display: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 强制调试：完全重置导航链接的所有可能样式 */
.nav-link, 
.nav-link:hover, 
.nav-link:focus, 
.nav-link:active, 
.nav-link:visited {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    outline: none !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-decoration-style: none !important;
    text-underline-offset: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* 临时测试：完全不同的样式 */
.nav-link {
    font-family: Arial, sans-serif !important;
    font-weight: normal !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    text-align: left !important;
    vertical-align: baseline !important;
    word-spacing: normal !important;
}

/* CTA Button */
.nav-cta {
    margin-left: auto;
    flex-shrink: 0;
}

.cta-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主横幅区域 */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 1000px;
    padding: 0 3rem;
}

.hero-label {
    display: block;
    color: #888888;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
    text-transform: uppercase;
}

.hero-title {
    font-size: 5rem;
    font-weight: 300;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* 搜索框容器 */
.search-container {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 6px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.search-box:hover,
.search-box:focus-within {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.search-input {
    width: calc(100% - 70px);
    padding: 20px 28px;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 400;
}

.search-input::placeholder {
    color: #666666;
    opacity: 1;
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.search-button i {
    color: #ffffff;
    font-size: 1.1rem;
}

.hero-scroll {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: #666666;
    animation: bounce 2s infinite;
    cursor: pointer;
    font-size: 1.2rem;
}

/* 宇宙星空背景 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.universe-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
}

/* 星爆效果 */
.starburst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 
        0 0 6px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(255, 255, 255, 0.6),
        0 0 18px rgba(255, 255, 255, 0.4);
}

.starburst::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: rotateBurst 20s linear infinite;
}

.starburst::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: rotateBurst 20s linear infinite;
}

/* 星星点点 */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 200px 90px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 240px 50px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 280px 120px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 300px 200px;
    animation: twinkle 10s ease-in-out infinite alternate;
}

/* 辐射光晕 */
.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(106, 90, 205, 0.1) 0%, 
        rgba(72, 61, 139, 0.05) 30%, 
        rgba(25, 25, 112, 0.02) 60%, 
        transparent 100%);
    animation: pulse 8s ease-in-out infinite;
}

/* 产品区域 */
.products {
    padding: 120px 0;
    background: #0a0a0a;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.product-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.card-content p {
    color: #999999;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-visual {
    margin: 1rem 0 2rem;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* App Factory Mockup */
.app-mockup {
    width: 100%;
    max-width: 240px;
}

.mockup-window {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.window-controls {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
}

.window-controls span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.window-controls span:nth-child(1) {
    background: #ff5f57;
}

.window-controls span:nth-child(2) {
    background: #ffbd2e;
}

.window-controls span:nth-child(3) {
    background: #28ca42;
}

.code-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-line {
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 2px;
    width: 100%;
}

.code-line.short {
    width: 60%;
}

.code-line.medium {
    width: 80%;
}

/* Data Factory Mockup */
.data-mockup {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.data-flow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-node {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #666666, #333333);
    box-shadow: 0 0 15px rgba(102, 102, 102, 0.4);
}

.data-connection {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #666666, #333333);
    opacity: 0.6;
}

.data-chart {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 40px;
}

.chart-bar {
    width: 12px;
    background: linear-gradient(180deg, #666666, #333333);
    border-radius: 2px 2px 0 0;
    opacity: 0.8;
}

/* Docs Mockup */
.docs-mockup {
    width: 100%;
    max-width: 200px;
    background: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.docs-header {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-nav {
    display: flex;
    gap: 4px;
}

.nav-item {
    width: 40px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.5);
}

.docs-content {
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.docs-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.docs-line.long {
    width: 90%;
}

.docs-line.medium {
    width: 70%;
}

.docs-line.short {
    width: 50%;
}

.docs-line:not(.long):not(.medium):not(.short) {
    width: 85%;
}

.card-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.card-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* 资讯动态区域 */
.news {
    padding: 100px 0;
    background: #0a0a0a;
}

.news .section-header {
    position: relative;
}

.more-link {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #00f2ff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 255, 0.2);
}

.news-date {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-card h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.news-link {
    color: #888888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #00f2ff;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    padding: 0.8rem 0 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #888888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-info {
    color: #666666;
    font-size: 0.8rem;
    line-height: 1.8;
}

.footer-bottom {
    color: #666666;
    font-size: 0.8rem;
    line-height: 1.8;
    text-align: center;
}

.footer-bottom a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
    text-decoration: underline;
}

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

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes rotateBurst {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.8;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 2rem;
        gap: 4rem;
    }
    
    .nav-menu {
        gap: 2rem;
    }
    
    .hero-content {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .product-card {
        min-height: 420px;
    }
    
    .card-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 0 1.5rem;
        height: 70px;
        gap: 2rem;
    }
    
    .brand-logo {
        font-size: 1.5rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        /* backdrop-filter: blur(20px); */
        padding: 2rem 0;
        flex-wrap: nowrap;
        gap: 1.5rem;
        align-items: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-cta {
        margin: 2rem auto 0;
        width: fit-content;
    }

    .hero {
        min-height: 600px;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
        margin-bottom: 3rem;
    }
    
    .hero-label {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .search-box {
        max-width: 95%;
        margin: 0 auto;
        border-radius: 25px;
        padding: 4px;
    }

    .search-input {
        font-size: 1rem;
        padding: 16px 20px;
        width: calc(100% - 60px);
    }
    
    .search-button {
        width: 44px;
        height: 44px;
    }

    .universe-container {
        width: 100vw;
        height: 100vh;
    }

    .glow-effect {
        width: 400px;
        height: 400px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        min-height: 420px;
    }

    .card-content {
        padding: 2rem;
    }

    .card-visual {
        height: 120px;
    }

    .app-mockup {
        max-width: 200px;
    }

    .mockup-window {
        padding: 0.8rem;
    }

    .data-chart {
        height: 30px;
    }

    .chart-bar {
        width: 10px;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .more-link {
        position: static;
        transform: none;
        margin-top: 1rem;
        display: block;
    }
}
