/**
 * 至尊酒业 - 高仿白酒批发网站样式表
 * 主色调：热情红 #E53935
 * 风格：医院般正规格局，奢华大气
 */

/* ==================== 基础变量 ==================== */
:root {
    --primary-color: #E53935;
    --primary-dark: #C62828;
    --primary-light: #FFCDD2;
    --secondary-color: #212121;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 70px; /* 为移动端底部导航预留空间 */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ==================== 工具类 ==================== */
.text-danger {
    color: var(--primary-color) !important;
}

.bg-danger {
    background-color: var(--primary-color) !important;
}

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

.btn-danger:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-danger {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.hover-danger:hover {
    color: var(--primary-color) !important;
}

.hover-white:hover {
    color: #fff !important;
}

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

.transition-all {
    transition: var(--transition);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.ls-2 {
    letter-spacing: 2px;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 顶部栏 ==================== */
.top-bar {
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .dropdown-toggle::after {
    margin-left: 0.3em;
    vertical-align: middle;
}

.city-dropdown {
    max-height: 300px;
    overflow-y: auto;
}

/* ==================== 主导航 ==================== */
.main-nav {
    transition: var(--transition);
    padding: 0.5rem 0;
}

.main-nav.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.75rem 1rem;
    position: relative;
}

.main-nav.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.main-nav.navbar-light .navbar-nav .nav-link:hover::after,
.main-nav.navbar-light .navbar-nav .nav-link.active::after {
    width: 80%;
}

.main-nav.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.brand-text h5 {
    font-size: 1.1rem;
}

.brand-text small {
    font-size: 0.75rem;
}

/* ==================== 移动端底部导航 ==================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1030;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
}

.mobile-bottom-nav .nav-link {
    color: var(--text-muted);
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
}

.mobile-bottom-nav .nav-link i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.mobile-bottom-nav .nav-link.active,
.mobile-bottom-nav .nav-link.text-danger {
    color: var(--primary-color);
}

/* ==================== 轮播图 ==================== */
.hero-slider {
    position: relative;
}

.slider-bg {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    left: 0;
    right: 0;
    text-align: center;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255,255,255,0.5);
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
}

.mobile-hero-text {
    margin-top: -1px;
}

/* ==================== 标题分隔符 ==================== */
.title-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.separator-line {
    flex: 1;
    height: 2px;
}

/* ==================== 业务卡片 ==================== */
.business-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.business-card .card-header {
    border: none;
}

.icon-circle {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-img {
    overflow: hidden;
}

.business-img img {
    transition: transform 0.5s ease;
}

.business-card:hover .business-img img {
    transform: scale(1.1);
}

/* ==================== 工艺特色 ==================== */
.craft-image {
    position: relative;
}

.experience-badge {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
}

.craft-small-img {
    z-index: 10;
    transform: translate(20%, 20%);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== 服务优势 ==================== */
.advantage-card {
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.hover-bg-opacity-20:hover {
    background-color: rgba(255,255,255,0.2) !important;
}

.service-flow {
    backdrop-filter: blur(10px);
}

/* ==================== 产品展示 ==================== */
.product-card {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.product-image img {
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    transition: var(--transition);
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* ==================== 评价卡片 ==================== */
.testimonial-card {
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

/* ==================== 新闻卡片 ==================== */
.news-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.news-date-badge {
    border-bottom-right-radius: var(--border-radius);
}

/* ==================== 城市网格 ==================== */
.city-item {
    transition: var(--transition);
    font-size: 0.875rem;
}

.city-item:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ==================== 页脚 ==================== */
.footer {
    position: relative;
}

.footer-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.footer-links li a {
    transition: var(--transition);
    display: inline-block;
}

.footer-links li a:hover {
    color: #fff !important;
    padding-left: 5px;
}

.city-tags .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

.qr-code {
    border: 3px solid #fff;
}

/* ==================== 返回顶部 ==================== */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

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

@media (min-width: 992px) {
    .back-to-top {
        bottom: 30px;
    }
}

/* ==================== 悬浮客服 ==================== */
.float-service {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1020;
}

.float-item .btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.float-item .btn:hover {
    transform: scale(1.1);
}

/* ==================== 页面头部 ==================== */
.page-header {
    position: relative;
}

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

/* ==================== 文章详情 ==================== */
.article-content {
    border-radius: var(--border-radius-lg);
}

.article-title {
    font-size: 1.75rem;
    line-height: 1.4;
}

.article-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-text p {
    margin-bottom: 1rem;
}

.article-text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.article-text h2,
.article-text h3,
.article-text h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* ==================== 时间轴 ==================== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-dot {
    z-index: 10;
}

@media (max-width: 767px) {
    .timeline-line {
        left: 20px !important;
    }
    .timeline-dot {
        left: 20px !important;
        right: auto !important;
    }
    .timeline-item > div {
        padding-left: 50px !important;
        padding-right: 15px !important;
        text-align: left !important;
    }
}

/* ==================== 团队卡片 ==================== */
.team-card {
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
}

/* ==================== 联系表单 ==================== */
.contact-form .form-control,
.contact-form .input-group-text {
    border-radius: var(--border-radius);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(229, 57, 53, 0.25);
}

.info-card {
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

/* ==================== 统计数字动画 ==================== */
.counter {
    font-weight: 700;
}

/* ==================== AOS动画自定义 ==================== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 991px) {
    .slider-bg {
        height: 400px;
    }
    
    .carousel-caption {
        display: none !important;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .display-6 {
        font-size: 1.25rem;
    }
    
    .experience-badge {
        width: 80px;
        height: 80px;
        font-size: 0.875rem;
    }
    
    .experience-badge span {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 575px) {
    .slider-bg {
        height: 250px;
    }
    
    .business-card .card-header h5 {
        font-size: 1rem;
    }
    
    .city-item {
        padding: 0.5rem 0.25rem !important;
    }
    
    .city-item small {
        font-size: 0.75rem;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .top-bar,
    .main-nav,
    .mobile-bottom-nav,
    .footer,
    .back-to-top,
    .float-service {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* ==================== 加载动画 ==================== */
.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.4), transparent);
    animation: loading 1.5s infinite;
}

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

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

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

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

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

/* ==================== 选中文本样式 ==================== */
::selection {
    background-color: var(--primary-color);
    color: #fff;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: #fff;
}