@import url('technor.css');


:root {
    --c-dark: #212529;
    --c-brand: #0033aa;
    --c-brand-light: #acc8ff;
    --c-brand-rgb: 78, 87, 212;
    --c-body: #727272;
    --font-base: "Technor-Medium", sans-serif;
    --box-shadow: 0px 15px 25px rgb(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-base);
    line-height: 1.7;
    color: var(--c-body);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
}

a {
    text-decoration: none;
}


section {

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-direction: column;
    position: relative;
}

img {
    height: 650px;
    position: relative;
    z-index: 2;
}

.product-bg {
    background: linear-gradient(to bottom right, var(--c-brand-light), var(--c-brand));
    color: white;
}

.logo {
    position: absolute;
    left: 20px;
    top:20px;
    z-index: 4;
    font-size: 30px;
}

.logo a {
    color: #fff;
}

.logo a:hover {
    color: rgb(59, 103, 174);
}

.keywords {
    position: absolute;
    width: 100%;
    z-index: 1; /* 确保在img下面 */
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
    font-size: 80px;
    top: 0;
}

.keywords:nth-child(1) { top: 2%; }
.keywords:nth-child(2) { top: 27%; }
.keywords:nth-child(3) { top: 52%; }
.keywords:nth-child(4) { top: 77%; }

.keyword-row {
    white-space: nowrap;
    animation: animate var(--t) linear infinite;
    animation-delay: calc(var(--t) * -1);
}

.keyword-row:nth-child(2) {
    animation: animate2 var(--t) linear infinite;
    animation-delay: calc(var(--t) / -2); /* 使第二行延迟动画，防止重叠 */
}

.keyword-row:nth-child(3) {
    animation: animate var(--t) linear infinite;
    animation-delay: calc(var(--t) / -3); /* 使第三行延迟动画，防止重叠 */
}

.keyword-row:nth-child(4) {
    animation: animate2 var(--t) linear infinite;
    animation-delay: calc(var(--t) / -4); /* 使第四行延迟动画，防止重叠 */
}

.keyword-row:nth-child(5) {
    animation: animate var(--t) linear infinite;
    animation-delay: calc(var(--t) / -5); /* 使第五行延迟动画，防止重叠 */
}

.keyword-row:nth-child(6) {
    animation: animate2 var(--t) linear infinite;
    animation-delay: calc(var(--t) / -6); /* 使第六行延迟动画，防止重叠 */
}

.keywords span {
    display: inline-flex;
    margin: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 30px;
    transition: 0.5s;
    letter-spacing: 5px;
}

.keywords span:hover {
    background: rgba(255, 255, 255, 0.15);
}

@keyframes animate {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes animate2 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200%);
    }
}


.hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scaleX(0);
    width: 60%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.5s, transform 1s cubic-bezier(0.76, 0, 0.24, 1);
    overflow: hidden;
    font-size: 32px;
    letter-spacing: 2px;
}

.hover-text p {
    margin: 0;
}

.container:hover + .hover-text {
    opacity: 1;
    transform: translate(-50%, -50%) scaleY(1);
}

.product-card {
    position: relative;
    z-index: 10;
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    margin: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    transition: transform 0.3s; 
}

.product-card:hover {
    transform: scale(1.05); /* 鼠标悬停时放大 */
}

.product-content {
    display: flex;
    align-items: center;
}

.product-image {
    width: 50%; /* 占据卡片左半部分 */
    height: auto;
    margin-right: 20px;
}

.product-text {
    width: 50%; /* 占据卡片右半部分 */
    text-align: left;
}

.product-text a {
    color: #5a9bd8; /* 默认浅蓝色 */
    text-decoration: none; /* 去掉默认下划线 */
    transition: color 0.3s; /* 添加过渡效果 */
}

.product-text a:hover {
    color: darkblue; /* 悬停时深蓝色 */
    text-decoration: underline; /* 悬停时显示下划线 */
}