/* 背景装饰 */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #edf3ff 0%, #e0ecff 50%, #d3e5ff 100%);
    overflow: hidden;
}

/* 科技曲线背景 */
.background-decoration::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="200" viewBox="0 0 1200 200"><path d="M0,100 Q300,180 600,80 T1200,100" fill="none" stroke="rgba(100,150,255,0.15)" stroke-width="2"/><path d="M0,120 Q300,20 600,140 T1200,120" fill="none" stroke="rgba(100,150,255,0.1)" stroke-width="3"/></svg>') repeat-x;
    background-size: 1200px 200px;
    animation: moveCurve 20s linear infinite;
}

.background-decoration::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1400" height="150" viewBox="0 0 1400 150"><path d="M0,75 Q350,20 700,100 T1400,75" fill="none" stroke="rgba(255,107,0,0.08)" stroke-width="2"/><path d="M0,50 Q350,120 700,30 T1400,50" fill="none" stroke="rgba(255,107,0,0.05)" stroke-width="3"/></svg>') repeat-x;
    background-size: 1400px 150px;
    animation: moveCurve 30s linear infinite reverse;
}

@keyframes moveCurve {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1200px 0;
    }
}

/* 添加更多的科技感动态元素 */
.tech-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: -1;
}

.tech-circle-1 {
    width: 40vw;
    height: 40vw;
    top: 10%;
    right: -15vw;
    opacity: 0.5;
    animation: pulse 15s infinite alternate;
}

.tech-circle-2 {
    width: 30vw;
    height: 30vw;
    bottom: 5%;
    left: -10vw;
    opacity: 0.3;
    animation: pulse 10s infinite alternate-reverse;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* 轮播区域样式 */
.carousel-section {
    flex: 1.8;
    max-width: 65%;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-content {
    width: 100%;
    position: relative;
    z-index: 1;
}

.carousel-title {
    margin-bottom: 40px;
}

.carousel-title h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.carousel-title p {
    font-size: 18px;
    color: #666;
    max-width: 80%;
}

/* 功能卡片区域 */
.feature-showcase {
    margin: 50px 0;
    perspective: 1200px;
}

.feature-row {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    transition: opacity 0.5s ease;
    transform-style: preserve-3d;
    position: relative;
    opacity: 0;
}

.feature-row.visible {
    opacity: 1;
}

/* 卡片波纹效果 */
.ripple-effect {
    position: absolute;
    background: rgba(255, 107, 0, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    z-index: 10;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

.feature-card {
    --hover-glow: none;
    --decoration-color: rgba(255, 107, 0, 0.08);
    --decoration-hover-color: rgba(255, 107, 0, 0.15);
    --after-transform: rotate(-35deg);
    --after-background: var(--decoration-color);
    width: 250px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5) inset, var(--hover-glow);
    padding: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    animation: cardEntrance 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #ff6b00, #ff9d5c);
    z-index: 2;
}

.feature-card::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 40px;
    background: var(--after-background);
    top: 25px;
    left: -30px;
    transform: var(--after-transform);
    z-index: 1;
    transition: all 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-10px) rotate3d(1, 5, 0, 5deg) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(255, 107, 0, 0.2) inset;
    z-index: 10;
}

.feature-card img {
    width: 95%;
    height: auto;
    margin: 0 auto 15px;
    border-radius: 15px;
    transition: all 0.4s ease;
    display: block;
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.feature-card p {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0 10px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    transform: translateY(0);
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card:hover p {
    color: #ff6b00;
    transform: scale(1.05) translateY(-3px);
}

.feature-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 卡片入场动画 */
@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    60% {
        opacity: 0.9;
        transform: translateY(-10px) scale(1.03);
    }
    80% {
        transform: translateY(5px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 添加卡片的入场动画类 */
.animate-entrance {
    animation: cardEntrance 0.6s ease forwards;
    animation-delay: calc(0.1s * var(--index, 0));
}

/* 第一个卡片向左倾斜 */
.feature-card:nth-child(1) {
    --index: 1;
    transform: translateY(10px) rotate3d(1, 5, 0, -3deg);
}

/* 第二个卡片位置略高 */
.feature-card:nth-child(2) {
    --index: 2;
    transform: translateY(-5px);
    z-index: 3;
}

/* 第三个卡片向右倾斜 */
.feature-card:nth-child(3) {
    --index: 3;
    transform: translateY(10px) rotate3d(1, -5, 0, 3deg);
}

.feature-card:nth-child(2):hover {
    transform: translateY(-15px) scale(1.05);
}

.feature-card:nth-child(3):hover {
    transform: translateY(-10px) rotate3d(1, -5, 0, 5deg) scale(1.05);
}

.feature-card:hover::after {
    background: var(--decoration-hover-color);
    transform: var(--after-transform);
}

.feature-card:nth-child(2)::after {
    transform: var(--after-transform);
    background: var(--after-background);
}

.feature-card:nth-child(2):hover::after {
    background: var(--decoration-hover-color);
    transform: var(--after-transform);
}

.feature-card:nth-child(3)::after {
    transform: var(--after-transform);
    background: var(--after-background);
}

.feature-card:nth-child(3):hover::after {
    background: var(--decoration-hover-color);
    transform: var(--after-transform);
}

/* 轮播点样式 */
.carousel-dots {
    display: flex;
    justify-content: flex-start;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    margin-right: 10px;
    background-color: rgba(204, 204, 204, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #ff6b00;
    transform: scale(1.2);
}

/* 登录区域样式 */
.login-section {
    flex: 1;
    max-width: 35%;
    padding: 40px 20px;
    display: flex;
    align-items: center;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 430px;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff6b00, #ff9d5c);
}

.login-container h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(221, 221, 221, 0.8);
    border-radius: 10px;
    font-size: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #ff6b00;
    outline: none;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.verification-code {
    display: flex;
}

.verification-code input {
    flex: 1;
    margin-right: 10px;
}

.verification-code button {
    padding: 0 20px;
    background-color: rgba(245, 247, 250, 0.9);
    color: #ff6b00;
    border: 1px solid rgba(221, 221, 221, 0.8);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.verification-code button:hover {
    background-color: rgba(255, 255, 255, 1);
    border-color: #ff6b00;
}

/* 保留ID选择器以兼容现有代码 */
#getCodeBtn, #regGetCodeBtn {
    /* 使用通用类的样式，无需重复定义 */
}

.login-btn {
    width: 100%;
    padding: 16px 0;
    background: linear-gradient(90deg, #ff6b00, #ff9d5c);
    color: white;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.25);
}

.agreement {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: flex-start;
}

.agreement input {
    margin-right: 8px;
    margin-top: 3px;
}

.agreement a {
    color: #ff6b00;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #666;
}

.login-footer a {
    color: #ff6b00;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .carousel-section, .login-section {
        max-width: 100%;
        flex: none;
        width: 100%;
        padding: 30px 0;
    }
    
    .main-content {
        flex-direction: column;
        padding-top: 20px;
    }
    
    .carousel-title h1 {
        font-size: 32px;
    }
    
    .feature-row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .feature-row {
        gap: 15px;
    }
    
    .feature-card {
        width: calc(50% - 15px);
        padding: 20px 15px;
    }
    
    .carousel-title h1 {
        font-size: 30px;
    }
    
    .carousel-title p {
        font-size: 16px;
    }
    
    .login-container {
        padding: 30px 20px;
    }
    
    .login-container h2 {
        font-size: 24px;
    }
    
    .logo img {
        height: 80px;
    }
    
    .logo {
        margin-bottom: 20px;
    }
}

/* 轮播淡入淡出动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表单切换样式 */
.form-box {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px 30px;
}

.form-box.active {
    display: block;
    opacity: 1;
    position: relative;
}

/* 登录方式选项卡 */
.login-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.login-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.login-tabs .tab.active {
    color: #ff6b00;
    font-weight: bold;
}

.login-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 25%;
    width: 50%;
    height: 2px;
    background-color: #ff6b00;
    transition: all 0.3s ease;
}

/* 选项卡内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

/* 下拉选择框样式 */
select {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(221, 221, 221, 0.8);
    border-radius: 10px;
    font-size: 15px;
    background-color: white;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path d="M0 0l6 6 6-6z" fill="%23666"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

select option {
    padding: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 自定义行业输入框 */
.other-industry-input {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(221, 221, 221, 0.8);
    border-radius: 10px;
    font-size: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.other-industry-input:focus {
    border-color: #ff6b00;
    outline: none;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* 功能卡片详情弹窗 */
.feature-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.feature-detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 80%;
    max-width: 800px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}

.feature-detail-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #333;
    top: 50%;
    left: 0;
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

.modal-feature-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-feature-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.modal-feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* 在轮播和登录页面其他部分重新添加前端logo的样式，覆盖main.css的样式 */
.logo {
    padding: 15px 0;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.logo img {
    height: 100px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .logo img {
        height: 90px;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 80px;
    }
    
    .logo {
        margin-bottom: 20px;
    }
}

/* 视频预览样式 */
.video-preview {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    background-color: #000;
    margin-bottom: 10px;
}

/* 视频容器样式 */
.video-container {
    position: relative;
    width: 95%;
    margin: 0 auto 15px;
    border-radius: 15px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.03);
    aspect-ratio: 9 / 16;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 2;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,107,0,0.05));
    z-index: 1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
}

.video-container .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
}

.video-container .play-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-left: 14px solid white;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}

.feature-card:hover .video-container .play-icon {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
}

/* 弹窗媒体容器 */
.modal-media-container {
    width: 100%;
    max-height: 400px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* 弹窗视频样式 */
.modal-feature-video {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    background-color: #000;
}

/* 更新弹窗图片样式 */
.modal-feature-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}

/* 优化视频卡片标题样式 */
.feature-card[data-type="video"] {
    display: flex;
    flex-direction: column;
}

.feature-card[data-type="video"] p {
    margin-top: 5px;
    padding: 0 10px;
    text-align: center;
    font-size: 16px;
    line-height: 1.3;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 确保图片卡片和视频卡片的一致高度 */
.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card img {
    width: 95%;
    height: auto;
    margin: 0 auto 15px;
    border-radius: 15px;
    transition: all 0.4s ease;
    display: block;
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.feature-card p {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0 10px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    transform: translateY(0);
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
} 