/* 循星科技主页专用样式 */

/* 英雄区域样式 */
.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 60px 0 20px 0;
    background: linear-gradient(45deg, var(--accent-color), #1E7A6E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    margin: 30px 0;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--accent-color), #1E7A6E);
    color: var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--accent-color-rgb), 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-color), #1E7A6E);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--accent-color-rgb), 0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text-color);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(var(--accent-color-rgb), 0.3);
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: rgba(var(--accent-color-rgb), 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* 四象展示 */
.faction-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.faction-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faction-card:hover::before {
    opacity: 1;
}

.faction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.faction-card.xuanwu {
    border: 2px solid #0A2A36;
}

.faction-card.xuanwu:hover {
    border-color: #114B5F;
    box-shadow: 0 15px 35px rgba(10, 42, 54, 0.3);
}

.faction-card.qinglong {
    border: 2px solid #1E7A6E;
}

.faction-card.qinglong:hover {
    border-color: #28A081;
    box-shadow: 0 15px 35px rgba(30, 122, 110, 0.3);
}

.faction-card.baihu {
    border: 2px solid #C0C5D4;
}

.faction-card.baihu:hover {
    border-color: #E5E8F0;
    box-shadow: 0 15px 35px rgba(192, 197, 212, 0.3);
}

.faction-card.zhuque {
    border: 2px solid #E65C43;
}

.faction-card.zhuque:hover {
    border-color: #FF866D;
    box-shadow: 0 15px 35px rgba(230, 92, 67, 0.3);
}

.faction-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.faction-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.faction-desc {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* 核心产品展示 */
.core-products {
    margin: 80px 0;
}

.core-products .section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--accent-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(var(--accent-color-rgb), 0.2);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent);
    opacity: 0;
    transition: all 0.6s ease;
    transform: rotate(45deg);
}

.product-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    position: relative;
    z-index: 1;
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--accent-color);
    position: relative;
    z-index: 1;
}

.product-card p {
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 主导航 */
.main-nav {
    margin-top: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.main-nav .btn {
    background: rgba(255,255,255,0.08);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--accent-color-rgb), 0.3);
    font-size: 0.9rem;
    margin: 0;
}

.main-nav .btn:hover {
    background: rgba(var(--accent-color-rgb), 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.main-nav .btn-featured {
    background: linear-gradient(45deg, var(--accent-color), #1E7A6E);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.main-nav .btn-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.main-nav .btn-featured:hover::before {
    left: 100%;
}

.main-nav .btn-featured:hover {
    background: linear-gradient(45deg, #28A081, var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--accent-color-rgb), 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin: 40px 0 15px 0;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .faction-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .faction-card {
        padding: 20px;
    }
    
    .faction-icon {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        padding: 25px;
    }
    
    .product-icon {
        font-size: 3rem;
    }
    
    .main-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin: 30px 0 15px 0;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .logo.index-logo {
        font-size: 2rem;
        text-align: center;
    }
}

/* 动画效果 */
.main-content {
    animation: fadeInUp 1s ease;
}

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

/* 特殊效果 */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(var(--accent-color-rgb), 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
} 