/**
 * 医保24小时服务网站样式表
 * 主题色：玫瑰金 #E91E63 + 珊瑚粉 #FF4081
 * 创建时间：2024
 */

/* ==================== 基础重置 ==================== */
:root {
    --ym-primary: #E91E63;
    --ym-primary-dark: #C2185B;
    --ym-secondary: #FF4081;
    --ym-accent: #F48FB1;
    --ym-light: #FCE4EC;
    --ym-dark: #880E4F;
    --ym-text: #333333;
    --ym-text-muted: #666666;
    --ym-bg-light: #FFF5F7;
    --ym-gradient: linear-gradient(135deg, #E91E63 0%, #FF4081 100%);
    --ym-shadow: 0 10px 40px rgba(233, 30, 99, 0.15);
    --ym-shadow-hover: 0 20px 60px rgba(233, 30, 99, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ym-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
}

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

a:hover {
    color: var(--ym-primary-dark);
}

/* ==================== 页脚样式 ==================== */
.ym-footer {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 80px 0 30px;
    position: relative;
    color: #fff;
}

.ym-footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.ym-footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.ym-footer-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.ym-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--ym-gradient);
    border-radius: 2px;
}

.ym-footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.ym-icon-box {
    width: 40px;
    height: 40px;
    background: var(--ym-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

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

.ym-footer-links li {
    margin-bottom: 12px;
}

.ym-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.ym-footer-links a:hover {
    color: var(--ym-secondary);
    transform: translateX(5px);
}

.ym-footer-links i {
    font-size: 0.8rem;
    margin-right: 8px;
    color: var(--ym-secondary);
}

.ym-qr-box {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    display: inline-block;
}

.ym-social-links {
    display: flex;
    gap: 10px;
}

.ym-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.ym-social-btn:hover {
    background: var(--ym-gradient);
    color: #fff;
    transform: translateY(-3px);
}

.ym-friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ym-friend-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.ym-friend-item:hover {
    background: var(--ym-primary);
    color: #fff;
}

/* ==================== 浮动按钮 ==================== */
.ym-float-buttons {
    position: fixed;
    right: 30px;
    bottom: 100px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ym-float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
}

.ym-float-btn:hover {
    transform: scale(1.1) translateY(-5px);
    color: #fff;
}

.ym-float-phone {
    background: linear-gradient(135deg, #E91E63, #FF4081);
    animation: ym-pulse 2s infinite;
}

.ym-float-wechat {
    background: linear-gradient(135deg, #07C160, #10B981);
}

.ym-float-message {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.ym-float-top {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    cursor: pointer;
}

@keyframes ym-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(233, 30, 99, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
    }
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 991.98px) {
    .ym-float-buttons {
        right: 20px;
        bottom: 80px;
    }
    
    .ym-float-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .ym-footer {
        padding: 60px 0 20px;
    }
    
    .ym-section-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 767.98px) {
    .ym-cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    }
    
    .ym-hero-title {
        font-size: 2rem !important;
    }
    
    .ym-process-timeline::before {
        display: none;
    }
    
    .ym-process-steps {
        flex-direction: column;
        gap: 30px;
    }
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--ym-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ym-primary-dark);
}

/* ==================== 加载动画 ==================== */
.ym-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(233, 30, 99, 0.3);
    border-radius: 50%;
    border-top-color: var(--ym-primary);
    animation: ym-spin 1s ease-in-out infinite;
}

@keyframes ym-spin {
    to { transform: rotate(360deg); }
}

/* ==================== 工具类 ==================== */
.ym-text-gradient {
    background: var(--ym-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ym-bg-gradient {
    background: var(--ym-gradient);
}

.ym-rounded-xl {
    border-radius: 20px;
}

.ym-shadow-pink {
    box-shadow: var(--ym-shadow);
}

/* ==================== 打印优化 ==================== */
@media print {
    .ym-float-buttons,
    .ym-footer-wave,
    .ym-header {
        display: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
}

/* ==================== 无障碍优化 ==================== */
:focus-visible {
    outline: 3px solid var(--ym-secondary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}