/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #165DFF;
    --secondary-green: #00B42A;
    --text-dark: #333333;
    --text-medium: #666666;
    --bg-light: #F5F7FA;
    --white: #FFFFFF;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--white);
    box-shadow: var(--shadow-light);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    width: 200px;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.menu-section {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-link {
    font-size: 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-blue);
}


.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s;
}

/* ===== 英雄区 ===== */
.hero-section {
    margin-top: 80px;
    min-height: 500px;
    background: linear-gradient(135deg, #165DFF 0%, #4a7cff 25%, #764ba2 50%, #9d4edd 75%, #b886db 100%);
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(225deg, #764ba2 0%, #9d4edd 20%, #165DFF 40%, #4a7cff 60%, #b886db 80%, #764ba2 100%);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite reverse;
    opacity: 0.6;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #9d4edd 0%, #165DFF 30%, #764ba2 60%, #4a7cff 90%, #9d4edd 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.4;
    z-index: 0;
}

.hero-section .hero-container {
    position: relative;
    z-index: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 50% 100%;
    }

    75% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.hero-title {
    font-size: 52px;
    font-weight: bold;
    color: var(--white);
    letter-spacing: 3px;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #0F4CD1;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 16px 40px;
    border: 2px solid var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes nodeLightUp {
    0% {
        opacity: 0;
        fill: #165DFF;
    }

    50% {
        opacity: 1;
        fill: #00B42A;
    }

    100% {
        opacity: 0.8;
        fill: #165DFF;
    }
}

@keyframes scanAnimation {
    0% {
        opacity: 1;
        transform: translateX(-100px);
    }

    100% {
        opacity: 0;
        transform: translateX(700px);
    }
}

@keyframes dataStreamFlow {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(450px);
    }
}

@keyframes spectrumFlow {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes corePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes corePulseLoop {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes moleculeForm {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes moleculeRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bondDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes labelPopUp {
    0% {
        opacity: 0;
        transform: scale(0) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes labelFade {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes iconSpark {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    50% {
        transform: scale(1.3) rotate(180deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes speedLine {
    0% {
        opacity: 0;
        stroke-dashoffset: 100;
    }

    100% {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

@keyframes taglineFade {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@keyframes dissolve {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes resetAnimation {
    to {
        opacity: 0;
    }
}

/* ===== 品牌理念区 ===== */
.mission-section {
    padding: 80px 0;
    background-color: var(--white);
}

.mission-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin: 0;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s;
    padding: 10px 20px;
    border-radius: 8px;
}

.value-marker {
    width: 10px;
    height: 10px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s;
    flex-shrink: 0;
}

.value-item:hover {
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, #165DFF 0%, #4a7cff 25%, #764ba2 50%, #9d4edd 75%, #b886db 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(22, 93, 255, 0.3);
}

.value-item:hover .value-marker {
    width: 14px;
    height: 14px;
    background-color: var(--white);
}

.company-intro {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
}

/* ===== 核心工具展示区 ===== */
.tools-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

/* 产品工具页网格布局 */
.products-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.products-row:last-child {
    margin-bottom: 0;
}

.tools-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.tools-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tools-container::-webkit-scrollbar {
    display: none;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scroll-arrow:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
}

.scroll-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}

.scroll-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.scroll-arrow:disabled:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-50%);
}

.scroll-progress-container {
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 0 60px;
    height: 4px;
    background-color: rgba(22, 93, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #165DFF 0%, #764ba2 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.tool-card {
    width: 380px;
    min-width: 380px;
    min-height: 350px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    flex-shrink: 0;
}

/* 产品工具页网格布局中的卡片 */
.products-grid-container .tool-card {
    width: 100%;
    min-width: 0;
}

.tool-card-coming {
    opacity: 0.7;
    background-color: #f8f9fa;
}

.tool-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.tool-icon {
    width: 32px;
    height: 32px;
}

.tool-title {
    font-size: 22px;
    color: var(--text-dark);
    margin-top: 15px;
    margin-bottom: 10px;
}

.tool-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 10px;
}

.tag-material {
    background: linear-gradient(135deg, #165DFF 0%, #4a7cff 100%);
    color: var(--white);
    font-weight: 500;
}

.tag-organic {
    background: linear-gradient(135deg, #764ba2 0%, #9d4edd 100%);
    color: var(--white);
    font-weight: 500;
}

.tag-coming {
    background-color: var(--text-medium);
    color: var(--white);
}

.tool-desc {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
    margin-top: 20px;
    flex: 1;
}

.tool-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-tool-trial {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-tool-trial:hover {
    background-color: #0F4CD1;
}

.btn-tool-organic {
    background: linear-gradient(135deg, #764ba2 0%, #9d4edd 100%);
    color: var(--white);
}

.btn-tool-organic:hover {
    background: linear-gradient(135deg, #9d4edd 0%, #764ba2 100%);
}

.tool-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    transition: text-decoration 0.3s;
}

.tool-link:hover {
    text-decoration: underline;
}

.tool-link-organic {
    color: #764ba2;
}

.tool-link-organic:hover {
    color: #9d4edd;
    text-decoration: underline;
}

.btn-tool-reserve {
    background-color: var(--text-medium);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-tool-reserve:hover {
    background-color: var(--text-dark);
}


/* ===== 试用引导区 ===== */
.cta-section {
    margin: 60px 0;
    padding: 40px 0;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0F4CD1 100%);
    border-radius: 20px;
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta-content {
    flex: 1;
}

.cta-title {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 10px;
}

.cta-subtitle {
    font-size: 16px;
    color: #E6F0FF;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn-cta-primary {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-cta-primary:hover {
    background-color: #F0F0F0;
    transform: translateY(-2px);
}

.btn-cta-secondary {
    background-color: transparent;
    color: var(--white);
    padding: 14px 32px;
    border: 1px solid var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===== 底部信息区 ===== */
.footer {
    background-color: var(--text-dark);
    color: #999999;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-text {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.footer-link {
    display: block;
    font-size: 12px;
    color: #999999;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--white);
}

.footer-copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444444;
}

.footer-copyright p {
    font-size: 12px;
    color: #999999;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1199px) {
    .products-grid-container {
        padding: 0 20px;
    }

    .products-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tools-wrapper {
        padding: 0 50px;
    }

    .tools-container {
        padding: 0 10px;
        gap: 20px;
    }

    .tool-card {
        width: 320px;
        min-width: 320px;
    }

    .scroll-arrow {
        width: 40px;
        height: 40px;
    }

    .scroll-left {
        left: 10px;
    }

    .scroll-right {
        right: 10px;
    }

    .scroll-progress-container {
        padding: 0 50px;
        margin-top: 15px;
    }
}

@media (max-width: 767px) {

    .menu-section {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        justify-content: space-between;
    }

    .logo-section {
        width: auto;
    }

    .hero-section {
        padding: 60px 0 40px;
        min-height: 400px;
    }

    .hero-content {
        gap: 35px;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.6;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .mission-section {
        padding: 60px 0;
    }

    .mission-container {
        gap: 40px;
    }

    .values {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .value-item {
        width: auto;
        padding: 12px 24px;
    }

    .company-intro {
        font-size: 14px;
        padding: 0 20px;
    }

    .tool-card {
        width: 90%;
    }

    .cta-container {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }

    .cta-content {
        text-align: left;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-column {
        width: 100%;
    }

    .footer-copyright {
        text-align: left;
        padding-left: 20px;
    }
}