/* ========== 主页（与 common.css 配合） ========== */
html, body {
    overflow-x: hidden;
}

body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    min-height: 100vh;
    background: #ffffff;
}
        
/* 页顶主标题区：与区块标题同理，透明底（保留顶黄线装饰） */
header {
    text-align: center;
    margin-bottom: 35px;
    padding: 25px 25px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
}
        
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--color-theme);
}
        
h1 {
    color: var(--gradient-theme-title);
    margin-bottom: 12px;
    font-size: 2rem;
    font-weight: 700;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    letter-spacing: -0.5px;
}
        
.intro {
    font-size: 1.05rem;
    color: #5a6c7d;
    margin: 8px 0;
    line-height: 1.6;
}
        
.github-link {
    color: rgba(0, 0, 0, 0.88);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 0;
    display: inline-block;
}
        
.github-link:hover {
    color: var(--color-theme-secondary);
    background-color: #fffde7;
    transform: translateY(-2px);
}
        
/* 首页区块标题样式见 common.css（.section-header） */

/* 心得与功能卡片布局 */
.tips-cards, .features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
        
@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    .tips-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tips-cards:not(.tips-cards--pair) {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 恰好两张卡片：固定左右两列（宽屏也不升为三列） */
.tips-cards.tips-cards--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575.98px) {
    .tips-cards.tips-cards--pair {
        grid-template-columns: 1fr;
    }
}
        
/* 卡片浮岛与顶条动画见 common.css（.tips-card / .feature-card） */

/* 卡片图标和标题容器 */
.card-icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
        
/* 卡片图标（尺寸由 common.css 定义，首页略紧凑） */
.card-icon {
    width: 2rem;
    height: 2rem;
}
        
/* 卡片标题与标签 */
.tips-title, .feature-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    display: inline-block;
}
        
.tips-title {
    color: #e74c3c;
}
        
.feature-title {
    color: var(--color-feature-title);
}
        
/* 卡片正文色与字号见 common.css */

/* 卡片描述文字样式 */
.feature-card p.feature-desc {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-top: 8px;
}
        
.tips-tag, .feature-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 0;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 600;
}
        
.tips-tag {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #d63031;
}
        
.feature-tag {
    background: linear-gradient(135deg, #a8e6cf 0%, #88d8a3 100%);
    color: #00b894;
}
        
/* 按钮样式 - 更吸引人 */
.tips-btn, .tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 0;
    font-size: 0.95rem;
    text-decoration: none !important;
    margin-top: 14px;
    color: var(--color-theme-ink) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}
        
.tips-btn::after, .tool-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}
        
.tips-btn:hover::after, .tool-btn:hover::after {
    transform: translateX(4px);
}
        
.tips-btn {
    color: #fff !important;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}
        
.tips-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}
        
.tool-btn {
    color: var(--color-theme-ink) !important;
    background: var(--gradient-theme);
}
        
.tool-btn:hover {
    background: var(--gradient-theme-reverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-tool);
}
        
/* 顶部三张横幅公共容器（桌面端同一行） */
.top-banners {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.top-banners > div {
    flex: 1 1 0;
    min-width: 220px;
}

/* 顶部三张横幅：灰底、白字、黑按钮；左侧统一竖向三色平涂 */
.navigation-banner,
.notes-banner,
.citywalk-banner {
    background: linear-gradient(165deg, #6d6f7a 0%, #5e606a 45%, #53555e 100%);
    border-radius: 0;
    padding: 20px 20px 20px 30px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 16px 40px rgba(0, 0, 0, 0.16),
        0 6px 14px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.navigation-banner::before,
.notes-banner::before,
.citywalk-banner::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 3px;
    height: auto;
    border-radius: 0;
    background: linear-gradient(
        180deg,
        #ff3cac 0%,
        #ff3cac 24%,
        #3fe0c5 24%,
        #3fe0c5 48%,
        #fffa00 48%,
        #fffa00 100%
    );
    pointer-events: none;
    z-index: 2;
}

.navigation-banner:hover,
.notes-banner:hover,
.citywalk-banner:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 20px 48px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.28);
}

.navigation-title,
.notes-title,
.citywalk-title {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.navigation-desc,
.notes-desc,
.citywalk-desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    margin-bottom: 14px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.navigation-btn,
.notes-btn,
.citywalk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background-color: #0f0f0f;
    color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
    position: relative;
    z-index: 1;
}

.navigation-btn::after,
.notes-btn::after,
.citywalk-btn::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.navigation-btn:hover,
.notes-btn:hover,
.citywalk-btn:hover {
    transform: scale(1.04) translateY(-2px);
    background-color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.navigation-btn:hover::after,
.notes-btn:hover::after,
.citywalk-btn:hover::after {
    transform: translateX(6px);
}
        
/* 返回顶部按钮样式已在 common.css 中定义 */
        
/* 移动端优化 */
@media (max-width: 767.98px) {
    body {
        padding: 15px 12px;
        background: #ffffff;
    }
            
    header {
        padding: 20px 18px;
        margin-bottom: 25px;
    }
            
    h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
            
    .intro {
        font-size: 0.95rem;
        margin: 6px 0;
    }
            
    .tips-cards, .features {
        gap: 14px;
    }
            
    .card-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
            
    .card-icon-title {
        gap: 8px;
        margin-bottom: 8px;
    }
            
    .tips-title, .feature-title {
        font-size: 1.15rem;
    }
            
    .tips-btn, .tool-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-top: 12px;
    }
            
    .top-banners {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 22px;
    }

    .top-banners > div {
        min-width: 0;
        width: 100%;
    }

    .navigation-banner,
    .notes-banner,
    .citywalk-banner {
        padding: 16px 16px 16px 28px;
        border-radius: 0;
        overflow: visible;
    }

    .navigation-banner::before,
    .notes-banner::before,
    .citywalk-banner::before {
        border-radius: 0;
    }
            
    .navigation-title,
    .notes-title,
    .citywalk-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
            
    .navigation-desc,
    .notes-desc,
    .citywalk-desc {
        font-size: 0.88rem;
        margin-bottom: 12px;
    }
            
    .navigation-btn,
    .notes-btn,
    .citywalk-btn {
        padding: 9px 18px;
        font-size: 0.85rem;
        max-width: 100%;
        white-space: nowrap;
    }

    .citywalk-btn {
        white-space: normal;
        text-align: center;
        justify-content: center;
        line-height: 1.3;
    }
            
    footer.site-footer {
        margin-top: 30px;
        padding: 16px;
        font-size: 0.85rem;
    }
            
}

/* 手机竖屏进一步优化顶部三张横幅 */
@media (max-width: 575.98px) and (orientation: portrait) {
    .top-banners {
        gap: 10px;
    }

    .navigation-banner,
    .notes-banner,
    .citywalk-banner {
        padding: 14px 14px 14px 26px;
        border-radius: 0;
        overflow: visible;
    }

    .navigation-banner::before,
    .notes-banner::before,
    .citywalk-banner::before {
        border-radius: 0;
    }

    .navigation-title,
    .notes-title,
    .citywalk-title {
        font-size: 1.1rem;
    }

    .navigation-desc,
    .notes-desc,
    .citywalk-desc {
        font-size: 0.84rem;
        margin-bottom: 12px;
    }

    .navigation-btn,
    .notes-btn,
    .citywalk-btn {
        width: 100%;
        justify-content: center;
        padding: 9px 14px;
        font-size: 0.85rem;
    }
}
