/* 海哥的体验创新 - 自定义样式 */

/* 全局样式 */
body {
    padding-top: 76px; /* 为固定导航栏留出空间 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: visible;
    max-width: none;
    flex-shrink: 0;
}

.navbar-nav {
    margin-left: auto;
    flex-shrink: 1;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero区域样式 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0 60px;
    margin-top: -76px;
    padding-top: 156px;
}

/* 首页Hero区域特殊样式 */
.hero-section.homepage {
    min-height: 55vh;
    padding: 90px 0 70px;
    padding-top: 166px;
}

.hero-section.homepage .fs-5 {
    margin-bottom: 0;
    font-size: 1.1rem !important;
    opacity: 0.9;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.95;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 按钮样式 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* 个人简介区域 */
.bg-light {
    background-color: #f8f9fa !important;
}

.rounded-circle {
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
footer {
    background-color: #212529 !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 60px 0 40px;
        margin-top: -70px;
        padding-top: 130px;
        min-height: 45vh;
    }
    
    .hero-section.homepage {
        padding: 70px 0 50px;
        padding-top: 140px;
        min-height: 50vh;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
        letter-spacing: 0.2px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

/* 文字样式优化 */
h2, h3, h4, h5, h6 {
    color: #212529;
    font-weight: 600;
}

.text-muted {
    color: #6c757d !important;
}

/* 链接样式 */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}