/* 明日生美业门店管理系统自定义样式 */

/* 导航栏激活状态 */
.navbar-nav .nav-item.active .nav-link {
    color: #ff6b35 !important;
    font-weight: bold;
}

/* 核心王牌优势卡片 */
.advantage-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.advantage-card h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.advantage-card p {
    color: #666;
    margin: 8px 0;
}

/* 功能卡片 */
.feature-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: #ff6b35;
    box-shadow: 0 10px 30px rgba(255,107,53,0.15);
}

.feature-card h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
}

.feature-card p {
    color: #666;
    margin: 8px 0;
}

/* 增值拓客内容 */
.value-add-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
}

/* 适用门店类型 */
.divider i {
    transition: all 0.3s ease;
}

.divider .p-3:hover i {
    transform: scale(1.2);
    color: #fff;
}

/* 评价卡片优化 */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
}

.testimonial-card p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    font-style: italic;
}

/* CTA 区域优化 */
.trial-content h3 {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.trial-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

/* 徽章样式 */
.badge {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
}

/* ========== 博客卡片样式 ========== */
.blog-card {
    width: 100%;
    height: 100%;
    position: relative;
    display: inline-block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* 博客图片 */
.blog-image {
    width: 100%;
    height: 220px;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FF7511;
    color: #fff;
    display: inline-block;
    padding: 0px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

/* 博客内容区域 - 添加内边距 */
.blog-info {
    width: 100%;
    position: relative;
    display: inline-block;
    padding: 15px 20px 20px;
}

.blog-info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.blog-info-top h4 {
    font-size: 14px;
    color: #ff6b35;
    margin: 0;
    font-weight: 600;
}

.blog-info-top p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.blog-info-body a h3 {
    font-size: 16px;
    margin: 10px 0 0;
    line-height: 1.5;
    font-weight: 600;
    color: #1e293b !important;
}

.blog-info-body a h3 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-info-body a h3 a:hover {
    color: #ff6b35;
}

/* 摘要区域 - 分割线下方 */
.blog-info-excerpt {
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid #f1f5f9;
}

.blog-info-excerpt p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    max-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.blog-info-bottom {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.blog-info-bottom-left {
    display: flex;
    align-items: center;
}

.bibl-img {
    width: 40px;
    min-width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    overflow: hidden;
}

.bibl-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bibl-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
    color: #1e293b;
}

.bibl-info p {
    line-height: 12px;
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

.blog-info-bottom-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-info-bottom-right ul li {
    display: inline-block;
    margin-left: 15px;
}

.blog-info-bottom-right ul li div {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 13px;
}

.blog-info-bottom-right ul li div i {
    color: #ff6b35;
    margin-right: 5px;
    font-size: 14px;
}

.blog-info-bottom-right ul li div p {
    margin: 0;
}

/* ========== 侧边栏样式 ========== */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

/* 搜索框 */
.sidebar-widget .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-widget .form-control {
    border: none;
    padding: 12px 15px;
    font-size: 14px;
}

.sidebar-widget .btn-main {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: none;
    padding: 12px 18px;
    color: #fff;
    transition: all 0.3s;
}

.sidebar-widget .btn-main:hover {
    opacity: 0.9;
}

/* 分类列表 */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 8px;
}

.sidebar-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.sidebar-categories li a:hover {
    background: #fff5f0;
    color: #ff6b35;
    padding-left: 16px;
}

.sidebar-categories .badge {
    background: #f1f5f9 !important;
    color: #64748b !important;
    font-size: 12px;
    padding: 3px 8px;
}

/* 最新文章 */
.sidebar-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post-img {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-info h6 {
    margin-bottom: 5px;
    line-height: 1.4;
}

.sidebar-post-info h6 a {
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.sidebar-post-info h6 a:hover {
    color: #ff6b35;
}

/* 标签 */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tags a {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-tags a:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
}

/* ========== 分页条美化 ========== */
.pagination-wrapper {
    text-align: center;
    margin-top: 30px;
}

/* 覆盖Bootstrap分页容器默认样式 */
.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
    list-style: none;
    padding: 0;
}

/* 覆盖Bootstrap .page-link 和 .page-item 样式 */
.pagination .page-link,
.pagination .page-item,
.pagination > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px;
    height: 44px;
    padding: 0 16px !important;
    margin: 0 !important;
    font-size: 15px;
    font-weight: 500;
    color: #495057 !important;
    background-color: #fff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    cursor: pointer;
    line-height: 1;
}

/* 首页和尾页按钮 */
.pagination > a:first-child,
.pagination > a:nth-child(2),
.pagination > a:nth-last-child(2),
.pagination > a:last-child,
.pagination .page-link:first-child,
.pagination .page-link:last-child {
    padding: 0 22px !important;
    font-weight: 600;
    color: #64748b !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-color: #e2e8f0 !important;
}

/* 悬浮效果 */
.pagination .page-link:hover,
.pagination > a:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
    border-color: #ff6b35 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,107,53,0.3);
    text-decoration: none !important;
}

/* 当前页高亮 - 橙色渐变 */
.pagination .page-num,
.pagination .page-num-current {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px;
    height: 44px;
    padding: 0 16px !important;
    margin: 0 !important;
    font-size: 15px;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
    border: 2px solid #ff6b35 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(255,107,53,0.35);
    transform: scale(1.08);
    cursor: default;
}

/* 禁用状态 */
.pagination a[href="javascript:;"],
.pagination .page-link[href="javascript:;"] {
    color: #cbd5e1 !important;
    background-color: #f8fafc !important;
    border-color: #f1f5f9 !important;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.pagination a[href="javascript:;"]:hover,
.pagination .page-link[href="javascript:;"]:hover {
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
    background: #f8fafc !important;
    border-color: #f1f5f9 !important;
    color: #cbd5e1 !important;
}

/* 数字分页条 */
.pagination .page-num {
    display: inline-flex !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .pagination {
        gap: 6px;
    }
    
    .pagination .page-link,
    .pagination .page-item,
    .pagination > a,
    .pagination .page-num {
        min-width: 38px;
        height: 38px;
        padding: 0 12px !important;
        font-size: 14px;
        border-radius: 10px !important;
    }
    
    .pagination > a:first-child,
    .pagination > a:nth-child(2),
    .pagination > a:nth-last-child(2),
    .pagination > a:last-child {
        padding: 0 16px !important;
        font-size: 13px;
    }
}


/* 搜索结果显示 */
.search-result-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.search-result-item h3 a {
    color: #333;
    text-decoration: none;
}

.search-result-item h3 a:hover {
    color: #ff6b35;
}

/* 表单样式 */
.contact-form .form-control {
    border-radius: 5px;
    padding: 12px;
}

.contact-form textarea {
    resize: vertical;
}

/* 联系信息 */
.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.contact-info ul li i {
    margin-right: 15px;
    color: #ff6b35;
    font-size: 20px;
}

/* 博客卡片 */
.blog-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-content h3 a {
    color: #333;
    text-decoration: none;
}

.blog-card-content h3 a:hover {
    color: #ff6b35;
}

.blog-card-content p {
    color: #666;
    margin: 15px 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-banner-container {
        padding-top: 80px;
    }
    
    .banner-heading {
        font-size: 32px !important;
    }
    
    .section-heading-wrapper h2 {
        font-size: 28px !important;
    }
}

/* 返回顶部按钮 */
#backTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #ff6b35;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#backTop:hover {
    background-color: #e55a2b;
}

/* 加载动画 */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ========== 手机轮播样式 ========== */
.phone-carousel-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

/* 手机外框 - 模拟iPhone样式 */
.phone-frame {
    position: relative;
    width: 280px;
    height: 560px;
    margin: 0 auto;
    background: transparent;
    border-radius: 20px;
    padding: 0;
    box-shadow: none;
    border: none;
    overflow: hidden;
}

/* 手机顶部刘海 - 移除 */
.phone-frame::before {
    display: none;
}

/* 手机屏幕 */
.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
    box-shadow: none;
}

/* Swiper轮播容器 */
.phone-swiper {
    width: 100%;
    max-width: 320px;
    padding-bottom: 50px;
}

.phone-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Swiper分页器样式 */
.phone-swiper .swiper-pagination {
    bottom: 0 !important;
}

.phone-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s;
}

.phone-swiper .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    width: 24px;
    border-radius: 5px;
}

/* Swiper导航按钮 */
.phone-swiper .swiper-button-prev,
.phone-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.phone-swiper .swiper-button-prev:hover,
.phone-swiper .swiper-button-next:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    transform: scale(1.1);
}

.phone-swiper .swiper-button-prev::after,
.phone-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: bold;
    color: #ff6b35;
}

.phone-swiper .swiper-button-prev:hover::after,
.phone-swiper .swiper-button-next:hover::after {
    color: #fff;
}

/* 轮播项切换动画 */
.phone-swiper .swiper-slide {
    transition: transform 0.5s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .phone-carousel-wrapper {
        min-height: 400px;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
        border-radius: 30px;
        padding: 10px;
    }
    
    .phone-frame img {
        border-radius: 22px;
    }
    
    .phone-frame::before {
        width: 100px;
        height: 20px;
    }
    
    .phone-swiper .swiper-button-prev,
    .phone-swiper .swiper-button-next {
        width: 32px;
        height: 32px;
    }
    
    .phone-swiper .swiper-button-prev::after,
    .phone-swiper .swiper-button-next::after {
        font-size: 14px;
    }
}

/* 移动端文字居中 - 独立媒体查询确保生效 */
@media (max-width: 768px) {
    .homeabout-info {
        display: block !important;
        text-align: center !important;
    }
    
    .homeabout-info h3,
    .homeabout-info h4,
    .homeabout-info p {
        text-align: center !important;
    }
    
    .homeabout-info ul {
        text-align: left !important;
        display: inline-block;
        margin: 0 auto;
    }
    
    /* 确保section-second-heading也居中 */
    .homeabout-info .section-second-heading {
        text-align: center !important;
    }
}

/* 移动端隐藏页脚 */
@media (max-width: 768px) {
    footer {
        display: none !important;
    }
}

/* 小屏幕额外样式 */
@media (max-width: 576px) {
    .homeabout-info {
        padding: 0 10px;
    }
}

/* 门店申请表单样式 */
.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
}

.modal-body {
    padding: 30px;
}

.modal-body .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
}

.modal-body .form-control:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.modal-body label {
    font-weight: 500;
    color: #333;
}

#submitBtn {
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
}

#successMessage, #errorMessage {
    padding: 30px 0;
}

#successMessage i, #errorMessage i {
    margin-bottom: 15px;
}
