/* ========================================
   医保卡余额提取服务网站样式表
   主题颜色：蓝色配色 (#1976D2 - 深海蓝)
   ======================================== */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主题颜色 */
    --primary-color: #1976D2;
    --primary-dark: #0d47a1;
    --primary-light: #42a5f5;
    --secondary-color: #FF5722;
    --success-color: #4CAF50;
    --warning-color: #FFD600;
    --info-color: #03A9F4;
    --danger-color: #E53935;
    
    /* 中性色 */
    --dark-color: #212121;
    --light-color: #f8f9fa;
    --gray-color: #607d8b;
    --border-color: #e0e0e0;
    
    /* 字体 */
    --font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* 圆角 */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* 阴影 */
    --box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    --box-shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

/* 基础样式 */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--dark-color);
    background-color: #fafafa;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: var(--spacing-xl);
}

/* 头部样式 */
.top-notice {
    font-size: 0.9rem;
    font-weight: 500;
}

.navbar-brand h5 {
    color: var(--primary-color);
    font-weight: 700;
}

.navbar-brand small {
    font-size: 0.8rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(25, 118, 210, 0.1);
    color: var(--primary-color);
}

.navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(25, 118, 210, 0.1);
    color: var(--primary-color);
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.8), rgba(66, 165, 245, 0.6));
    display: flex;
    align-items: center;
}

.hero-contact-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 特色服务卡片 */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-light);
}

.feature-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(25, 118, 210, 0.1);
}

/* 服务流程 */
.process-timeline {
    position: relative;
}

.process-step {
    text-align: center;
    padding: var(--spacing-md);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: var(--light-color);
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm);
    font-size: 2rem;
    color: var(--primary-color);
}

/* 城市目录 */
.city-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    padding: var(--spacing-sm);
}

.city-item:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.city-item:hover .city-icon i {
    color: white !important;
}

/* 新闻卡片 */
.news-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    text-align: center;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.date-month {
    font-size: 0.8rem;
}

/* 客户评价 */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.testimonial-rating {
    color: var(--warning-color);
}

/* 常见问题 */
.accordion-button {
    background: white;
    border: none;
    font-weight: 600;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background: rgba(25, 118, 210, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
}

/* 数据统计 */
.stat-item {
    padding: var(--spacing-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 固定联系按钮 */
.fixed-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.contact-btn {
    display: block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.phone-btn {
    background: var(--primary-color);
}

.whatsapp-btn {
    background: #25D366;
}

.wechat-btn {
    background: #07C160;
}

.contact-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
}

.footer-section h5,
.footer-section h6 {
    color: var(--primary-light);
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.friend-links a {
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.friend-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    background: var(--primary-color) !important;
}

/* 页面标题 */
.page-title {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

/* 新闻列表 */
.news-item {
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.news-category {
    position: absolute;
    top: 10px;
    left: 10px;
}

.news-date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 5px 8px;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 0.8rem;
}

.hot-news-item {
    transition: all 0.3s ease;
}

.hot-news-item:hover {
    background: rgba(25, 118, 210, 0.05);
}

.hot-news-number {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* 文章详情 */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content {
    color: #333;
}

.content h2,
.content h3,
.content h4 {
    color: var(--primary-color);
    margin: var(--spacing-lg) 0 var(--spacing-md);
}

.content p {
    margin-bottom: var(--spacing-md);
}

.content ul,
.content ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.content li {
    margin-bottom: var(--spacing-xs);
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
}

/* 关于我们 */
.timeline {
    position: relative;
    padding: var(--spacing-lg) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.timeline-content {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 0 var(--spacing-md);
    flex: 1;
}

.team-member {
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.member-avatar img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.culture-item {
    transition: all 0.3s ease;
}

.culture-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.advantage-item {
    padding: var(--spacing-md);
}

/* 联系表单 */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

.invalid-feedback {
    display: block;
}

.commitment-item {
    padding: var(--spacing-md);
}

.emergency-phone {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        margin-bottom: var(--spacing-xs);
    }
    
    .carousel-caption {
        padding: var(--spacing-md);
    }
    
    .process-step {
        margin-bottom: var(--spacing-lg);
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 50px;
    }
    
    .timeline-date {
        margin-bottom: var(--spacing-sm);
    }
    
    .fixed-contact {
        right: 10px;
        bottom: 10px;
    }
    
    .contact-btn {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.2rem;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .news-image {
        height: 200px;
        overflow: hidden;
    }
    
    .news-image img {
        height: 100%;
        object-fit: cover;
    }
    
    .article-content {
        padding: var(--spacing-md);
    }
    
    .form-container {
        padding: var(--spacing-md);
    }
}

@media (max-width: 576px) {
    .hero-contact-card {
        margin-top: var(--spacing-lg);
    }
    
    .city-item {
        margin-bottom: var(--spacing-xs);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* 滚动动画 */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* 数字滚动动画 */
.stat-number {
    opacity: 0;
    transform: translateY(20px);
    animation: countUp 0.8s ease forwards;
}

@keyframes countUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 特殊效果 */
.hover-primary:hover {
    color: var(--primary-color) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 加载动画 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 响应式字体大小 */
html {
    font-size: 16px;
}

@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
}
