/* 
 * Islands Hero Section - Modern Design 
 * 首页英雄区域现代设计重构版
 */

/* ========== Hero Container ========== */
.islands-hero {
    position: relative;
    width: 100%;
    min-height: 65vh; /* 缩小高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    overflow: hidden;
    padding: 80px 20px; /* 缩小内边距 */
    box-sizing: border-box;
}

/* ========== Dynamic Background ========== */
.islands-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #f8fafc; /* 添加一个极淡的灰白底色，让页面更干净 */
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.hero-bg-shape {
    display: none; /* 移除光晕 */
}

/* ========== Content Area ========== */
.islands-hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px; /* 增加文案区与下方卡片区的间距 */
}

.islands-hero-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Badge (Tagline) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: pulse 2s infinite;
}

.hero-badge-text {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    letter-spacing: 0.02em;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Typography */
.islands-hero-title {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #1d1d1f; /* 第一行黑色 */
    margin: 0 0 24px 0;
    letter-spacing: -0.03em;
}

.hero-text-green {
    color: #1d1d1f; /* 第二行也改为纯黑色 */
}

.islands-hero-desc {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
    line-height: 1.7;
    color: #6b7280;
    max-width: 680px;
    margin: 0 0 48px 0;
}

/* Actions & Buttons */
.islands-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 60px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px;
    padding: 0 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.hero-btn:hover svg {
    transform: translateX(4px);
}

.hero-btn-primary {
    background-color: #d1fae5;
    color: #065f46;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.15);
}

.hero-btn-primary:hover {
    background-color: #a7f3d0;
    color: #065f46;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(16, 185, 129, 0.2);
}

.hero-btn-secondary {
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.hero-btn-secondary:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Scroll Indicator */
.hero-scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(156, 163, 175, 0.6);
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.hero-scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: #9ca3af;
    border-radius: 2px;
    margin-top: 6px;
    animation: scroll-wheel 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* Utility Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

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

/* Breakpoints */
@media (max-width: 640px) {
    .islands-hero {
        min-height: 65vh; /* 缩小高度 */
        padding: 60px 20px;
    }
    .hero-btn {
        width: 100%; /* 移动端按钮撑满 */
    }
    .islands-hero-actions {
        width: 100%;
        flex-direction: column;
    }
}

/* ========== 核心概念导航 - 悬浮在英雄区域 ========== */
.hero-concepts-wrapper {
    width: 100%;
    margin-top: 40px;
    z-index: 2;
    position: relative;
}

.hero-concepts-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .hero-concepts-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-concepts-inner {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem; /* 减小一点间距，让卡片更紧凑 */
    }
}

/* 错落布局：移除，改为统一对齐更干净 */
@media (min-width: 1024px) {
    .hero-concept-card:hover {
        transform: translateY(-8px); /* 悬浮时统一向上，更轻盈 */
    }
}

.hero-concept-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.hero-concept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

/* 统一通体背景色设定 */
.card-actor { background: #fdf2f2; }
.card-field { background: #f0f7ff; }
.card-island { background: #f0fdf4; }
.card-collab { background: #f5f3ff; }

/* 卡片插图区（已移除，留空，只保留占位或直接删除类） */
.concept-ill {
    display: none;
}

/* 卡片文本区 */
.concept-content {
    padding: 2.5rem 2rem; /* 增加内边距让纯文本卡片显得不空洞 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    background: transparent; /* 背景透明，透出外层卡片的底色 */
}

/* 根据底色搭配标题颜色 */
.card-actor .concept-title { color: #dc2626; } /* 红色系 */
.card-field .concept-title { color: #2563eb; } /* 蓝色系 */
.card-island .concept-title { color: #059669; } /* 绿色系 */
.card-collab .concept-title { color: #7c3aed; } /* 紫色系 */

.concept-title {
    font-size: 1.5rem; /* 放大标题，由于没有图标，文字需要有力量感 */
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.concept-desc {
    font-size: 1rem; /* 稍微放大正文 */
    line-height: 1.6;
    color: #424245;
    margin-bottom: 2rem;
    flex: 1;
}

/* 底部操作按钮 */
.concept-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: color 0.2s;
    margin-top: auto;
}

/* 按钮颜色根据卡片变化 */
.card-actor .concept-btn { color: #b91c1c; }
.card-field .concept-btn { color: #1d4ed8; }
.card-island .concept-btn { color: #047857; }
.card-collab .concept-btn { color: #6d28d9; }

.concept-btn::after {
    content: '›';
    margin-left: 4px;
    font-size: 1.2em;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-concept-card:hover .concept-btn::after {
    transform: translateX(4px);
}

/* 隐藏原 Hero */
.home-hero-section[style*="display:none"] {
    display: none !important;
}