/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* 容器边距调整 */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* 卡片内边距调整 */
.card-body {
    padding: 1.5rem 3rem !important;
}

/* 通用容器内边距调整 */
.bg-white.rounded-lg.shadow-lg {
    padding: 1.5rem 3rem !important;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #333 !important;
}

.nav-link {
    font-weight: 500;
    color: #666 !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff6b6b !important;
}

.nav-link.active {
    color: #ff6b6b !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff6b6b;
}

/* 首页横幅样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgdmlld0JveD0iMCAwIDYwIDYwIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiMyMDIwMjAiIGZpbGwtb3BhY2l0eT0iMC4yIj48cGF0aCBkPSJNMzYgMzRjMC0yLjIxLTEuNzktNC00LTRzLTQgMS43OS00IDQgMS43OSA0IDQgNCA0LTEuNzkgNC00eiIvPjxwYXRoIGQ9Ik0xMiAxOGMwLTIuMjEtMS43OS00LTQtNHMtNCAxLjc5LTQgNCAxLjc5IDQgNCA0IDQtMS43OSA0LTR6Ii8+PC9nPjwvZz48L3N2Zz4=');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* 图片自动裁剪样式 */
img {
    object-fit: cover;
    object-position: center;
    max-width: 100%;
    height: auto;
}

.card-img-top {
    width: 100%;
    height: 200px;
}

/* 热门新闻图片样式 */
#popularNews img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-title {
    font-weight: 600;
    color: #333;
}

/* 按钮样式 */
.btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-light {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* 表单样式 */
form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

/* section样式 */
section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* 页脚样式 */
footer {
    background: #333;
    color: white;
    padding: 3rem 1.5rem 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    header {
        padding: 4rem 0;
    }
    
    .navbar {
        background: white !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .pc-form {
        display: none !important;
    }
    
    .mobile-form {
        display: block !important;
    }
    
    .d-none-mobile {
        display: none !important;
    }
    
    .mobile-services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .mobile-services-grid .card {
        margin-bottom: 0;
    }
}

@media (min-width: 769px) {
    .pc-form {
        display: block !important;
    }
    
    .mobile-form {
        display: none !important;
    }
    
    .d-none-mobile {
        display: block !important;
    }
    
    .mobile-services-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }
}