/* 芯片排行榜主页样式 - 企业级高端设计 */

.chiprank-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

/* 背景装饰效果 */
.chiprank-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(88, 86, 214, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.chiprank-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(0, 100px);
    }
}

.chiprank-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Hero 标题区域 */
.hero-content {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.title-main {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.title-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 300;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 排行榜卡片网格 */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@media (max-width: 768px) {
    .rankings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* 排行榜卡片 */
.ranking-card {
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.ranking-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ranking-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ranking-card:hover::before {
    opacity: 1;
}

.cpu-card {
    color: #007AFF;
}

.cpu-card:hover {
    background: rgba(0, 122, 255, 0.05);
    box-shadow: 
        0 20px 40px rgba(0, 122, 255, 0.2),
        0 0 0 1px rgba(0, 122, 255, 0.3);
}

.gpu-card {
    color: #FF3B30;
}

.gpu-card:hover {
    background: rgba(255, 59, 48, 0.05);
    box-shadow: 
        0 20px 40px rgba(255, 59, 48, 0.2),
        0 0 0 1px rgba(255, 59, 48, 0.3);
}

/* 卡片图标 */
.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: transform 0.4s ease;
}

.ranking-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

/* 卡片内容 */
.card-content {
    margin-bottom: 2rem;
}

.card-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.card-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* 卡片统计信息 */
.card-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: currentColor;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 卡片按钮 */
.card-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: currentColor;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.card-button:hover::before {
    left: 100%;
}

.card-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: currentColor;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.card-button:hover svg {
    transform: translateX(4px);
}

/* 特性区域 */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(28, 28, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(28, 28, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.feature-item:hover .feature-icon {
    filter: grayscale(0);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.feature-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .chiprank-container {
        padding: 0 1.5rem;
    }
    
    .rankings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .chiprank-hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .ranking-card {
        padding: 2rem;
    }
    
    .card-title {
        font-size: 1.75rem;
    }
    
    .features-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .chiprank-container {
        padding: 0 1rem;
    }
    
    .ranking-card {
        padding: 1.5rem;
    }
    
    .card-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

