.hero-section { margin-bottom: 80px; }

/* 首页首屏巨大方格背景 */
body.home-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 145vh; /* 覆盖首屏及更多区域，约到“你可以做什么”附近 */
    background-image: 
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 60px 60px; /* 方格稍微调小 */
    background-position: center top;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    pointer-events: none;
}

/* 首页板块标题样式（原 components.css 迁移并调整） */
.section-header {
    margin-bottom: 10px; /* 原为 40px */
    border-bottom: none; /* 原为 1px solid */
    padding-bottom: 10px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 32px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
    max-width: 700px;
    line-height: 1.5;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

.section-block { margin-bottom: 80px; }
.section-block:last-child { margin-bottom: 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.feature-item-link {
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr; /* 第二行占据剩余高度，确保底部对齐 */
    column-gap: 16px; /* 视觉间距 */
    align-items: start; /* 内容顶对齐 */
    padding: 24px;
    margin: 0;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background-color: var(--tile-bg-1);
    border: 1px solid var(--accent-subtle);
    box-shadow: var(--tile-shadow);
    height: 100%;
    position: relative; /* 为伪元素定位兜底 */
}

.feature-item-link:hover {
    background-color: var(--hover-bg);
    /* transform: translateY(-1px); -- Removed per user preference */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: var(--accent-color);
    border-style: dashed;
    border-width: 2px;
    padding: 23px; /* 保持布局稳定 */
}

/* Dark Mode Specific Hover Adjustment */
[data-theme="dark"] .feature-item-link:hover {
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Light Mode Specific Hover Adjustment: Remove gray overlay */
[data-theme="light"] .feature-item-link:hover {
    background-color: var(--tile-bg-1);
}

.feature-title {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px; /* 减少标题与描述的间距 */
    color: var(--text-primary);
    transition: color 0.3s ease;
    display: block; /* 移除之前的 flex */
    line-height: 1.2; /* 优化行高 */
    margin-top: -2px; /* 视觉微调：向上提一点，抵消行高带来的空白 */
}

/* 移除旧的箭头实现 */
.feature-title::after {
    display: none;
}

.feature-desc {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

/* 新的科学化箭头定位系统 */
.feature-item-link::after {
    content: "\2192";
    grid-column: 2;
    grid-row: 2; /* 移至第二行 */
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 400;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 更自然的贝塞尔曲线 */
    align-self: end; /* 底部对齐 */
    justify-self: end;  /* 靠右对齐 */
    margin-left: 8px;   /* 8px 安全间距 */
    margin-bottom: 2px; /* 视觉微调 */
}

.feature-item-link:hover .feature-title { color: var(--accent-color); }
.feature-item-link:hover .feature-desc { color: var(--text-primary); }
.feature-item-link:hover::after { opacity: 1; transform: translateX(0); }

/* 响应式优化 */
@media (max-width: 768px) {
    .feature-item-link {
        padding: 20px; /* 移动端减少内边距 */
        column-gap: 12px;
    }
    
    .feature-title {
        font-size: 1.15rem; /* 移动端微调标题大小 */
    }
}

.who-for-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.who-for-item {
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    /* Card Style - Match Feature Cards */
    background-color: var(--tile-bg-1);
    border: 1px solid var(--accent-subtle);
    box-shadow: var(--tile-shadow);
    padding: 24px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.who-for-item:hover {
    /* transform: translateY(-1px); -- Removed per user preference */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: var(--accent-color);
    border-style: dashed;
    border-width: 2px;
    padding: 23px; /* Adjust padding to prevent layout shift */
}

/* Dark Mode Specific Hover Adjustment for Who For Cards */
[data-theme="dark"] .who-for-item:hover {
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.05);
}

.who-for-icon {
    color: var(--accent-color); /* Default to accent */
    margin-top: 4px;
    margin-right: 20px;
    font-size: 1.2rem;
    opacity: 1; 
}

/* Light Mode Specific Icon Color */
[data-theme="light"] .who-for-icon {
    color: #1F2937;
}

.who-for-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

/* Light Mode Specific Title Color */
[data-theme="light"] .who-for-title {
    color: #111827;
}

.who-for-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Light Mode Specific Desc Color */
[data-theme="light"] .who-for-desc {
    color: #374151;
}

/* Dark Mode Contrast Enhancements */
[data-theme="dark"] .who-for-title {
    color: #F3F4F6; /* Gray 100 - High Contrast White */
}

[data-theme="dark"] .who-for-desc {
    color: #D1D5DB; /* Gray 300 - Readable Light Gray */
}

.closing-block {
    margin-top: 120px;
    padding-top: 80px;
    border-top: 1px solid var(--accent-subtle);
}

.closing-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.closing-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    display: block;
}

.closing-headline {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.closing-content {
    padding-top: 45px;
}

.closing-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 480px;
}

.closing-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.closing-link i {
    transition: transform 0.3s ease;
}

.closing-link:hover {
    opacity: 0.7;
}

.closing-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .closing-block { margin-top: 80px; padding-top: 60px; }
    .closing-layout { grid-template-columns: 1fr; gap: 30px; }
    .closing-headline { font-size: 1.8rem; }
    .closing-content { padding-top: 0; }
}
