/* 基础样式重置 */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

/* 导航栏 */
#navbar {
    background: transparent;
    backdrop-filter: blur(0);
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

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

/* 按钮样式 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    background: #f0f0f0;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.25);
    background: #f0f0f0;
}

.btn-secondary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary-lg:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* 核心能力卡片 */
.capability-card {
    perspective: 1000px;
    height: 320px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.capability-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.card-front {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #333333;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-back {
    background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
    transform: rotateY(180deg);
    justify-content: center;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
    font-size: 0.85rem;
    border-radius: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #ffffff;
}

/* 案例轮播 */
.case-carousel {
    position: relative;
}

.case-track {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.case-card {
    flex-shrink: 0;
    width: 320px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #333333;
    transition: all 0.4s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: #555555;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}

.case-content {
    padding: 1.5rem;
}

.case-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.case-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.case-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #ffffff;
    border-color: transparent;
    color: #000000;
}

.carousel-prev {
    left: -24px;
}

.carousel-next {
    right: -24px;
}

@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }
}

/* AI演示窗口 */
.ai-demo-window {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 16px;
    border: 1px solid #333333;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.demo-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #000000;
    border-bottom: 1px solid #333333;
}

.demo-dots {
    display: flex;
    gap: 8px;
    margin-right: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27ca40;
}

.demo-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.demo-content {
    padding: 1.5rem;
}

.demo-input {
    margin-bottom: 1.5rem;
}

.prompt-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.prompt-text {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 1rem;
    color: #ffffff;
    font-size: 0.95rem;
}

.demo-output {
    background: #000000;
    border-radius: 12px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.output-placeholder {
    text-align: center;
}

.generating-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.particle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.particle {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 4px;
    animation: particle-pulse 1.5s ease-in-out infinite;
}

.particle:nth-child(1) { animation-delay: 0s; }
.particle:nth-child(2) { animation-delay: 0.1s; }
.particle:nth-child(3) { animation-delay: 0.2s; }
.particle:nth-child(4) { animation-delay: 0.3s; }
.particle:nth-child(5) { animation-delay: 0.4s; }
.particle:nth-child(6) { animation-delay: 0.5s; }
.particle:nth-child(7) { animation-delay: 0.6s; }
.particle:nth-child(8) { animation-delay: 0.7s; }
.particle:nth-child(9) { animation-delay: 0.8s; }

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

.generating-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 页脚 */
.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: #ffffff;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ffffff;
    color: #000000;
}

/* 粒子画布 */
#particle-canvas {
    pointer-events: none;
}

/* 区块标题 */
.section-title {
    color: #ffffff;
    text-shadow: none;
}

/* 页面内容区域 */
.page-content {
    position: relative;
    z-index: 10;
}

/* 服务卡片 */
.service-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #333333;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: #555555;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

/* 案例网格 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

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

/* 案例详情卡片 */
.case-detail-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #333333;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.case-detail-card:hover {
    border-color: #555555;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.case-detail-image {
    height: 250px;
    overflow: hidden;
}

.case-detail-content {
    padding: 2rem;
}

/* 客户Logo墙 */
.logo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.logo-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    transition: all 0.3s ease;
}

.logo-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #555555;
}

.logo-text {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 时间轴 */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #333333;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    transform: translateX(-5px);
}

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

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333333;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #555555;
    background: rgba(255, 255, 255, 0.08);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* 技术能力展示 */
.tech-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.tech-feature:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tech-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

/* 标签筛选 */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333333;
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: #ffffff;
    border-color: transparent;
    color: #000000;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .capability-card {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .capability-card {
        height: auto;
        min-height: 280px;
    }
    
    .card-inner {
        transform: none !important;
    }
    
    .card-front,
    .card-back {
        position: relative;
        transform: none !important;
    }
    
    .card-back {
        display: none;
    }
    
    .case-card {
        width: 280px;
    }
}

/* 加载动画 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #333333;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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