/* 案例页面特定样式 */
:root {
    --case-security: #FF5E94;
    --case-ai: #00C4B4;
    --case-development: #5E6AD2;
}

/* 增强背景高光效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 35%, rgba(94, 106, 210, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 15%, rgba(0, 196, 180, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(255, 94, 148, 0.07) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* 添加微妙的噪点纹理 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

/* 增强顶部光晕效果 */
.cases-hero::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(94, 106, 210, 0.25) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

/* 增强底部光晕效果 */
.custom-plan-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, rgba(0, 196, 180, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

/* 添加额外的光晕点 */
.cases-showcase::before {
    content: '';
    position: absolute;
    top: 30%;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, rgba(255, 94, 148, 0.12) 0%, transparent 70%);
    filter: blur(50px);
    z-index: -1;
    pointer-events: none;
}

/* 添加右侧光晕点 */
.cases-showcase::after {
    content: '';
    position: absolute;
    top: 60%;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle at center, rgba(94, 106, 210, 0.15) 0%, transparent 70%);
    filter: blur(45px);
    z-index: -1;
    pointer-events: none;
}

/* 增强卡片悬停效果 */
.case-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(94, 106, 210, 0.2),
        0 0 30px rgba(94, 106, 210, 0.1);
}

/* 案例页面头部 */
.cases-hero {
    position: relative;
    padding: 120px 0 60px;
    overflow: hidden;
}

.cases-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.cases-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.cases-hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 106, 210, 0.1) 0%, rgba(94, 106, 210, 0) 70%);
    top: -200px;
    left: -200px;
    filter: blur(50px);
    animation: pulseAnimation 8s infinite ease-in-out;
}

.hero-bg-circle.secondary {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 196, 180, 0.1) 0%, rgba(0, 196, 180, 0) 70%);
    top: 50%;
    right: -200px;
    left: auto;
    animation-delay: 2s;
}

/* 案例筛选器 */
.cases-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: rgba(94, 106, 210, 0.1);
    border-color: rgba(94, 106, 210, 0.2);
    color: var(--accent-primary);
    box-shadow: 0 5px 15px rgba(94, 106, 210, 0.1);
}

/* 案例展示区域 */
.cases-showcase {
    padding: 0px 0 100px;
    position: relative;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* 案例卡片样式 */
.case-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card.large {
    grid-column: span 2;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(94, 106, 210, 0.2),
        0 0 30px rgba(94, 106, 210, 0.1);
    border-color: rgba(94, 106, 210, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.case-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.case-card.large .case-image {
    height: 280px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.case-card[data-category="security"] .case-category {
    background: rgba(255, 94, 148, 0.15);
    color: var(--case-security);
    border: 1px solid rgba(255, 94, 148, 0.2);
}

.case-card[data-category="ai"] .case-category {
    background: rgba(0, 196, 180, 0.15);
    color: var(--case-ai);
    border: 1px solid rgba(0, 196, 180, 0.2);
}

.case-card[data-category="development"] .case-category {
    background: rgba(94, 106, 210, 0.15);
    color: var(--case-development);
    border: 1px solid rgba(94, 106, 210, 0.2);
}

.case-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.case-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.case-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: auto;
}

.case-stat {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.case-tag {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.case-card[data-category="security"]:hover .case-tag {
    background: rgba(255, 94, 148, 0.05);
    border-color: rgba(255, 94, 148, 0.1);
    color: var(--case-security);
}

.case-card[data-category="ai"]:hover .case-tag {
    background: rgba(0, 196, 180, 0.05);
    border-color: rgba(0, 196, 180, 0.1);
    color: var(--case-ai);
}

.case-card[data-category="development"]:hover .case-tag {
    background: rgba(94, 106, 210, 0.05);
    border-color: rgba(94, 106, 210, 0.1);
    color: var(--case-development);
}

/* 定制计划部分 */
.custom-plan-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.custom-plan-card {
    position: relative;
    border-radius: 24px;
    padding: 50px;
    display: flex;
    gap: 50px;
    overflow: hidden;
}

.glass-effect {
    background: rgba(20, 20, 30, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.custom-plan-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.custom-plan-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.custom-plan-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.custom-plan-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.blur-element {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 106, 210, 0.2) 0%, rgba(94, 106, 210, 0) 70%);
    top: -100px;
    right: -100px;
    filter: blur(60px);
    animation: pulseAnimation 10s infinite ease-in-out;
}

.blur-element.secondary {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 196, 180, 0.15) 0%, rgba(0, 196, 180, 0) 70%);
    top: auto;
    bottom: -50px;
    right: 100px;
    animation-delay: 3s;
}

.dot-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

/* 表单样式 */
.custom-plan-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    width: 100%;
}

.custom-plan-form label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.custom-plan-form input,
.custom-plan-form textarea,
.custom-plan-form select {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.custom-plan-form input:focus,
.custom-plan-form textarea:focus,
.custom-plan-form select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(94, 106, 210, 0.1);
}

.custom-plan-form textarea {
    resize: vertical;
    min-height: 120px;
}

.service-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-option {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-option:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.service-option input {
    display: none;
}

.service-option input:checked + .option-text {
    color: var(--accent-primary);
}

.service-option input:checked + .option-text::before {
    content: '✓ ';
}

.option-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(94, 106, 210, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.btn-primary:hover::after {
    animation: shimmer 1.5s infinite;
}

/* 移动端适配 */
@media (max-width: 1024px) {
    .cases-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .case-card.large {
        grid-column: auto;
    }
    
    .custom-plan-card {
        flex-direction: column;
        padding: 30px;
    }
    
    .custom-plan-visual {
        position: relative;
        width: 100%;
        height: 200px;
        order: -1;
        margin-bottom: 30px;
    }
    
    .blur-element {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .cases-hero {
        padding: 100px 0 40px;
    }
    
    .cases-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .cases-hero-content p {
        font-size: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .case-image {
        height: 180px;
    }
    
    .case-card.large .case-image {
        height: 200px;
    }
    
    .case-content {
        padding: 20px;
    }
    
    .case-card h3 {
        font-size: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .custom-plan-visual {
        display: none;
    }
    
    /* 确保导航栏可见 */
    nav {
        display: block;
        position: static;
        width: auto;
    }
    
    /* 导航链接列表样式 */
    .nav-links {
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
    
    /* 隐藏菜单切换按钮，因为我们不需要它 */
    .menu-toggle {
        display: none;
    }
    
    /* 调整页面底部内边距，为底部导航栏留出空间 */
    footer {
        padding-bottom: 70px;
    }
    
    /* 调整活动链接样式 */
    .nav-links a.active {
        color: var(--accent-primary);
    }
}

@media (max-width: 480px) {
    .cases-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .custom-plan-content h2 {
        font-size: 1.8rem;
    }
    
    .service-type-options {
        gap: 8px;
    }
    
    .service-option {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .linear-notification {
        width: calc(100% - 40px);
        top: 10px;
        right: 10px;
        padding: 12px;
    }
}

/* 确保导航栏在桌面版显示在右侧 */
@media (min-width: 769px) {
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    nav {
        position: static;
        width: auto;
        background: none;
        height: auto;
        transform: none;
    }
    
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        height: auto;
        padding: 0;
    }
    
    .nav-links li {
        opacity: 1;
        transform: none;
    }
}

/* 为表单添加微妙的光晕效果 */
.custom-plan-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(94, 106, 210, 0.1) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* Linear.app风格的表单提交和通知样式 */
.custom-plan-form button.loading {
    position: relative;
    color: transparent;
}

.custom-plan-form button.loading::after {
    content: "";
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Linear.app风格的通知提示框 */
.linear-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: flex-start;
    background: rgba(20, 20, 30, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    width: 320px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.linear-notification.notification-enter {
    transform: translateX(0);
    opacity: 1;
}

.linear-notification.notification-exit {
    transform: translateX(400px);
    opacity: 0;
}

.linear-notification .notification-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.linear-notification.success .notification-icon {
    color: #4CAF50;
}

.linear-notification.error .notification-icon {
    color: #F44336;
}

.linear-notification .notification-content {
    flex: 1;
}

.linear-notification .notification-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.linear-notification .notification-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.linear-notification .notification-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    margin: -4px;
    border-radius: 4px;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.linear-notification .notification-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.custom-plan-form .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-plan-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(94, 106, 210, 0.3);
}

.custom-plan-form .btn-primary:active {
    transform: translateY(0);
}