/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 自定义天蓝色主题 */
:root {
    --primary-color: #0099cc; /* 天蓝色主色调 */
    --primary-light: #e6f7ff;
    --primary-dark: #007acc;
    --secondary-color: #f0f8ff;
    --text-color: #333;
    --text-light: #666;
}

/* 导航栏样式 */
.navbar {
    transition: all 0.3s ease;
    background-color: white !important;
    border-bottom: 1px solid #e0e0e0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color) !important;
}

.nav-link {
    font-size: 1.1rem;
    margin: 0 8px;
    color: var(--text-color) !important;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 500;
}

/* 轮播图样式 */
.carousel-item {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.carousel-caption {
    bottom: 30%;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
}

.carousel-caption h5 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

/* 核心服务样式 */
#features {
    background-color: var(--secondary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 8px;
    background-color: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 153, 204, 0.2);
}

.card h3, .card h5 {
    color: var(--primary-color);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* 各部分间距 */
section {
    padding: 80px 0;
}

section h2 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* 关于我们样式 */
#about img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#about img:hover {
    transform: scale(1.02);
}

#about h2::after {
    left: 0;
    transform: none;
}

/* 社区动态样式 */
#community .bg-white {
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

#community .bg-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 153, 204, 0.15);
}

#community h3 {
    color: var(--primary-color);
    font-weight: 600;
}

#community .d-flex.bg-gradient-to-r {
    border-radius: 8px;
    transition: all 0.3s ease;
}

#community .d-flex.bg-gradient-to-r:hover {
    transform: translateX(5px);
}

#community .w-20.h-20 {
    border-radius: 8px;
    overflow: hidden;
}

#community .w-20.h-20 img {
    transition: transform 0.3s ease;
}

#community .w-20.h-20:hover img {
    transform: scale(1.1);
}

#community .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#community .bg-white.border {
    border-radius: 8px;
    transition: all 0.3s ease;
}

#community .bg-white.border:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

#community .bg-primary\/10 {
    background-color: rgba(0, 153, 204, 0.1);
}

#community .bg-warning\/10 {
    background-color: rgba(255, 193, 7, 0.1);
}

#community .text-warning {
    color: #ffc107 !important;
}

#community .text-dark {
    color: #333 !important;
}

/* 联系我们样式 */
#contact .bg-white {
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#contact .bg-white:hover {
    box-shadow: 0 8px 25px rgba(0, 153, 204, 0.15);
}

#contact h3 {
    color: var(--primary-color);
    font-weight: 600;
}

#contact .input-group {
    transition: all 0.3s ease;
}

#contact .input-group-text {
    background-color: rgba(0, 153, 204, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 153, 204, 0.3);
    border-right: none;
}

#contact .form-control {
    border-radius: 0 8px 8px 0;
    border: 1px solid rgba(0, 153, 204, 0.3);
    border-left: none;
    padding: 12px;
    transition: all 0.3s ease;
}

#contact .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 153, 204, 0.25);
    outline: none;
}

/* 联系方式卡片样式 */
#contact .space-y-4 > div {
    border-radius: 8px;
    transition: all 0.3s ease;
}

#contact .space-y-4 > div:hover {
    background-color: rgba(0, 153, 204, 0.15) !important;
    transform: translateX(5px);
}

#contact .w-12.h-12 {
    border-radius: 50%;
    transition: all 0.3s ease;
}

#contact .w-12.h-12:hover {
    transform: scale(1.1);
}

/* 社交图标样式 */
#contact .flex.space-x-4 a {
    transition: all 0.3s ease;
}

#contact .flex.space-x-4 a:hover {
    transform: translateY(-3px) scale(1.1);
}

/* 公众号和小程序样式 */
#contact .grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

#contact .grid-cols-2 > div {
    border-radius: 8px;
    transition: all 0.3s ease;
}

#contact .grid-cols-2 > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 153, 204, 0.15);
}

#contact .w-100px {
    width: 100px;
    margin: 0 auto;
}

#contact .h-100px {
    height: 100px;
}

#contact .img-fluid {
    transition: transform 0.3s ease;
}

#contact .img-fluid:hover {
    transform: scale(1.05);
}

/* 按钮样式增强 */
#contact .btn-primary.w-100 {
    border-radius: 8px;
    transition: all 0.3s ease;
}

#contact .btn-primary.w-100:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 153, 204, 0.3);
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 24px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 204, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 24px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: white;
}

footer a {
    color: white;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
    text-decoration: none;
    padding-left: 5px;
}

footer h4 {
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
}

footer ul li {
    margin-bottom: 10px;
}

hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* 社交图标样式 */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
    border: 1px solid white;
}

.social-icons a:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* 列表样式 */
.list-unstyled li {
    position: relative;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.list-unstyled li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

#community .list-unstyled li::before,
footer .list-unstyled li::before {
    display: none;
}

footer .list-unstyled li {
    padding-left: 0;
}

/* 登录页面样式 (保留原有样式) */
.login-container {
    width: 300px;
    padding: 16px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-container h2 {
    text-align: center;
    color: var(--primary-color);
}

.captchadiv{
    width: 100%;
}

.captchadiv input[type=captcha]{
    width: 50%;
    height: 40px;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.captchadiv img{
    width: 48%;
    height: 40px;
}

.captchadiv img:hover{
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        bottom: 20%;
        padding: 15px;
    }
    
    .carousel-caption h5 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    section h2::after {
        width: 60px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .nav-link {
        font-size: 1rem;
        margin: 5px 0;
    }
}