/* style.css - 更现代化的设计 */
body {
    padding-top: 56px;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #3a3a3a;
    line-height: 1.7;
    background-color: #f9f9ff;
    overflow-x: hidden;
}

/* 顶部导航栏美化 */
.navbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    color: #4a4a4a !important;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 5px;
    padding: 10px 15px !important;
    border-radius: 8px;
}

.nav-link:hover {
    color: #6e8efb !important;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.hero-section {
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 30px;
    margin: 2rem auto;
    max-width: 1200px;
    width: calc(100% - 4rem);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 25s linear infinite;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.hero-section p {
    font-size: 1.4rem;
    max-width: 750px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* 添加按钮动画 */
.hero-btn {
    position: relative;
    z-index: 2;
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.4s ease;
    overflow: hidden;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* 特色盒子美化 */
.feature-box {
    background: white;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.feature-box h3 {
    color: #2a2a2a;
    margin-bottom: 1.2rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.feature-box p {
    color: #5a5a5a;
    font-size: 1.05rem;
}

/* 文章内容美化 */
.post-content {
    line-height: 1.9;
    font-size: 1.15em;
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.post-content h2 {
    color: #2a2a2a;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
}

.post-content p {
    margin-bottom: 1.8rem;
    color: #4a4a4a;
}

/* 卡片美化 */
.card {
    border: none;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 2.5rem;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    line-height: 1.4;
}

.card-text {
    color: #5a5a5a;
    line-height: 1.7;
    font-size: 1.05rem;
}

.card-date {
    font-size: 0.9rem;
    color: #8a8a8a;
    margin-bottom: 1rem;
    display: block;
}

/* 按钮美化 */
.btn {
    border-radius: 50px;
    padding: 0.9rem 2rem;
    font-weight: 600;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: white !important;
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(110, 142, 251, 0.45);
    cursor: pointer;
}

.btn-outline-primary {
    border: 2px solid #6e8efb;
    color: #6e8efb;
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: white;
    border-color: transparent;
    cursor: pointer;
}

/* 分页美化 */
.pagination {
    margin: 2.5rem 0;
}

.pagination .page-link {
    border-radius: 12px;
    margin: 0 4px;
    transition: all 0.3s ease;
    border: none;
    color: #6a6a6a;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    padding: 0.7rem 1.2rem;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(110, 142, 251, 0.35);
    cursor: pointer;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
    color: white;
    box-shadow: 0 6px 15px rgba(110, 142, 251, 0.35);
}

/* 页脚美化 */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 1rem;
    font-size: 1.3rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
    border-radius: 2px;
}

footer a {
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.9rem;
    text-decoration: none;
    position: relative;
    padding-left: 15px;
}

footer a::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    transform: translateX(8px);
}

footer a:hover::before {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    transform: translateY(-3px);
    cursor: pointer;
}

/* 动画效果 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

.stagger-delay-1 { animation-delay: 0.1s; }
.stagger-delay-2 { animation-delay: 0.2s; }
.stagger-delay-3 { animation-delay: 0.3s; }
.stagger-delay-4 { animation-delay: 0.4s; }

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 1.5rem;
        border-radius: 20px;
    }

    .hero-section h1 {
        font-size: 2.6rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .feature-box {
        padding: 1.8rem;
        margin-bottom: 1.8rem;
    }

    .post-content {
        padding: 1.8rem;
    }

    .card-body {
        padding: 1.8rem;
    }
    
    footer {
        padding: 3rem 0 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 450px;
        border-radius: 15px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .card {
        margin-bottom: 1.8rem;
    }
    
    .feature-box {
        padding: 1.5rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
}

@media (max-width: 400px) {
    .hero-section {
        min-height: 400px;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .feature-box,
    .post-content,
    .card-body {
        padding: 1.2rem;
    }
}

/* 悬停效果增强 */
.hover-scale {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* 表单美化 */
.form-control {
    border-radius: 12px;
    padding: 0.9rem 1.3rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #6e8efb;
    box-shadow: 0 0 0 0.25rem rgba(110, 142, 251, 0.25);
    outline: 0;
}

.form-control::placeholder {
    color: #aaa;
}

/* 分割线美化 */
hr {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}