/* 吉林省乾康大药房连锁有限公司 - 公共样式 */
/* 合规档案风格 - 深靛蓝 + 薄荷绿 */

/* CSS变量定义 */
:root {
    /* 主色调 - 深靛蓝系 */
    --primary-color: #1f2a44;
    --primary-dark: #121826;
    --primary-light: #3b4a6b;
    --primary-lighter: #9fb4c7;
    --primary-lightest: #f6f8fb;
    
    /* 强调色 - 薄荷绿色系 */
    --accent-color: #19a974;
    --accent-dark: #0f7f5f;
    --accent-light: #66d2aa;
    --accent-lightest: #e9fff6;
    
    /* 中性色 */
    --text-dark: #111827;
    --text-body: #374151;
    --text-muted: #6b7280;
    --text-light: #f9fafb;
    
    /* 背景色 */
    --bg-light: #f6f8fb;
    --bg-white: #ffffff;
    --bg-dark: #111827;
    --bg-gradient: linear-gradient(135deg, #121826 0%, #1f2a44 78%, #0f7f5f 100%);
    
    /* 边框和阴影 */
    --border-color: #d1d5db;
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(18, 24, 38, 0.08);
    --shadow-lg: 0 18px 44px rgba(18, 24, 38, 0.12);
    --shadow-xl: 0 24px 60px rgba(18, 24, 38, 0.16);
    --shadow-ink: 0 18px 48px rgba(31, 42, 68, 0.14);
    
    /* 圆角 */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.5rem;
    --radius-2xl: 0.5rem;
    --radius-full: 9999px;
    
    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 字体 */
    --font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 全局重置 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

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

/* 基础样式 */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-light);
    background-image:
        linear-gradient(rgba(31, 42, 68, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 42, 68, 0.035) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 导航栏样式 */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(31, 42, 68, 0.1);
    backdrop-filter: blur(18px);
    padding: 1rem 0;
    transition: all var(--transition-base);
    box-shadow: none;
}

.navbar-custom.scrolled {
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(18, 24, 38, 0.08);
    padding: 0.75rem 0;
}

.navbar-custom .navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: min(72vw, 460px);
    line-height: 1.35;
    white-space: normal;
}

.navbar-custom .navbar-brand:hover {
    color: var(--primary-dark);
}

.navbar-custom .navbar-brand i {
    font-size: 1.75rem;
}

.navbar-custom .nav-link {
    color: var(--text-body);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color var(--transition-fast);
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-color);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 60%;
}

/* Bootstrap Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background-color: var(--primary-lightest);
    border-radius: var(--radius-md);
}

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

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231f2a44' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 按钮样式 */
.btn-primary-custom {
    background: var(--bg-gradient);
    border: 1px solid rgba(31, 42, 68, 0.2);
    color: var(--text-light);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #121826 0%, #0f172a 100%);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent-color);
    border: none;
    color: var(--text-light);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, #0b5d48 100%);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 卡片样式 */
.card-custom {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-custom .card-body {
    padding: 1.5rem;
}

/* 特色卡片 */
.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    text-align: left;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-ink);
}

.feature-card:hover::before {
    transform: scaleY(1);
}

.feature-card .icon-wrapper {
    width: 58px;
    height: 58px;
    margin: 0 0 1.5rem;
    background: var(--primary-lightest);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.feature-card .icon-wrapper i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all var(--transition-base);
}

.feature-card:hover .icon-wrapper {
    background: var(--bg-gradient);
    transform: translateY(-4px);
}

.feature-card:hover .icon-wrapper i {
    color: var(--text-light);
}

.feature-card h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* 区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title .subtitle {
    display: inline-block;
    background: var(--primary-lightest);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(31, 42, 68, 0.12);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* 页脚样式 */
.footer-custom {
    background: var(--primary-dark);
    border-top: 4px solid var(--accent-color);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-custom h5 {
    color: var(--primary-lighter);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-custom p,
.footer-custom li {
    color: rgba(255, 255, 255, 0.7);
}

.footer-custom a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-custom a:hover {
    color: var(--primary-lighter);
}

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

.footer-custom .footer-links li {
    margin-bottom: 0.75rem;
}

.footer-custom .footer-links li i {
    color: var(--primary-light);
    margin-right: 0.5rem;
}

.footer-custom .contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-custom .contact-info li i {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* 动画效果 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 数字统计动画 */
.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 悬浮效果 */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* 文字颜色工具类 */
.text-ink {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-dark-custom {
    color: var(--text-dark) !important;
}

/* 背景颜色工具类 */
.bg-ink-light {
    background-color: var(--primary-lightest) !important;
}

.bg-gradient-ink {
    background: var(--bg-gradient) !important;
}

/* 分隔线 */
.divider {
    width: 60px;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: var(--radius-sm);
    margin: 1rem auto;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-lightest);
    color: var(--primary-color);
    border: 1px solid rgba(31, 42, 68, 0.12);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-accent {
    background: var(--accent-lightest);
    color: var(--accent-color);
}

/* 表单样式 */
.form-control-custom {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 42, 68, 0.1);
    outline: none;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        background: var(--bg-white);
        padding: 1rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        margin-top: 1rem;
    }
    
    .navbar-custom .nav-link::after {
        display: none;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .stat-item .stat-number {
        font-size: 2.5rem;
    }
    
    .footer-custom {
        padding: 3rem 0 1.5rem;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
