/* 美思未来官网 - 自定义样式 (参考CRMEB风格优化) */

/* ====== 全局样式 ====== */
:root {
    --primary-color: #1890ff;
    --primary-dark: #096dd9;
    --primary-light: #e6f7ff;
    --secondary-color: #0f172a;
    --accent-color: #ff6b00;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --danger-color: #ff4d4f;
    --text-dark: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --bg-light: #f5f7fa;
    --bg-gray: #f0f2f5;
    --border-color: #e8e8e8;
    --gradient-primary: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #1890ff 50%, #36cfc9 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
    font-size: 14px;
}

/* ====== 导航栏 ====== */
.navbar {
    transition: var(--transition);
    padding: 0;
    height: 64px;
    background: #fff !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    height: 100%;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: var(--primary-color);
}

.navbar .btn-primary {
    padding: 0.5rem 1.5rem;
    font-size: 14px;
}

/* ====== Hero Section ====== */
.hero-section {
    background: var(--gradient-hero);
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 64px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 550px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 4px;
}

/* ====== Section 通用样式 ====== */
section {
    padding: 60px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-gray {
    background: var(--bg-gray);
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-align: center;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    max-width: 500px;
    margin: 0 auto 40px;
}

/* ====== 核心优势 ====== */
.advantage-card {
    background: #fff;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.advantage-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.advantage-card h4 {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.advantage-card p {
    font-size: 13px;
    line-height: 1.6;
}

/* ====== 产品卡片 (CRMEB风格) ====== */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    background: #fff;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: var(--bg-light);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* 产品标签 */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-badge .badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 2px;
}

.badge-hot {
    background: linear-gradient(135deg, #ff6b00, #ff9500);
    color: #fff;
}

.badge-new {
    background: linear-gradient(135deg, #52c41a, #73d13d);
    color: #fff;
}

.badge-recommend {
    background: linear-gradient(135deg, #1890ff, #36cfc9);
    color: #fff;
}

.badge-free {
    background: linear-gradient(135deg, #722ed1, #b37feb);
    color: #fff;
}

/* 热度标签 */
.heat-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.heat-badge i {
    color: #ff6b00;
}

.product-card .card-body {
    padding: 16px;
}

.product-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .card-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
}

/* 产品标签组 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    min-height: 24px;
}

.product-tags .tag {
    font-size: 12px;
    padding: 2px 8px;
    background: var(--bg-light);
    color: var(--text-muted);
    border-radius: 2px;
    border: 1px solid var(--border-color);
}

/* 价格展示 (CRMEB风格) */
.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger-color);
}

.price-current::before {
    content: '¥';
    font-size: 14px;
}

.price-original {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-unit {
    font-size: 12px;
    color: var(--text-light);
}

/* 产品底部操作 */
.product-card .card-footer {
    padding: 12px 16px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.product-card .card-footer .btn {
    flex: 1;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

/* ====== 分类卡片 ====== */
.category-card .card {
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.category-card:hover .card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary-color);
}

.category-icon i {
    font-size: 24px;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-card:hover .category-icon i {
    color: #fff;
}

.category-card .card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* ====== 分类筛选标签 ====== */
.category-filter {
    border-bottom: 1px solid var(--border-color);
}

.category-btn {
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    transition: var(--transition);
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-btn.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ====== 服务流程 ====== */
.process-item {
    position: relative;
    text-align: center;
}

.process-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.process-item h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.process-item p {
    font-size: 13px;
}

.process-arrow {
    position: absolute;
    right: -10%;
    top: 25px;
    color: var(--primary-color);
    font-size: 20px;
}

/* ====== 客户案例 ====== */
.case-card {
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.case-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.case-icon i {
    font-size: 22px;
    color: var(--primary-color);
}

.case-card .card-title {
    font-size: 14px;
    font-weight: 600;
}

.case-results .badge {
    font-size: 11px;
    font-weight: 400;
    padding: 3px 8px;
}

/* ====== CTA区域 ====== */
.cta-section {
    background: var(--gradient-hero);
    padding: 60px 0;
}

.cta-section h2 {
    font-size: 28px;
    font-weight: 600;
}

/* ====== 页脚 ====== */
.footer {
    background: #1f2937;
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 30px;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    font-size: 13px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ====== 按钮样式 ====== */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 8px 20px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.35);
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: #fff;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--text-dark);
    padding: 8px 20px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    transition: var(--transition);
}

.btn-light:hover {
    background: #f5f5f5;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

/* ====== 页面标题头部 ====== */
.page-header {
    background: var(--gradient-hero);
    padding: 80px 0 50px;
    text-align: center;
    margin-top: 64px;
}

.page-header h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.page-header .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    justify-content: center;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: #fff;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* ====== 返回顶部按钮 ====== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ====== 联系我们页面 ====== */
.contact-info-section .contact-info-card {
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-info-section .contact-info-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.contact-info-section .contact-info-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.contact-info-section .contact-info-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.contact-info-section h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* ====== FAQ ====== */
.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
    padding: 16px 20px;
    background: #fff;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ====== 关于我们页面 ====== */
.culture-card {
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.culture-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.culture-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.culture-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.advantage-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.advantage-icon-wrapper i {
    font-size: 28px;
    color: var(--primary-color);
}

/* ====== 时间线 ====== */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 35px;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-year {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.timeline-content h5 {
    font-size: 15px;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 13px;
}

/* ====== 产品详情页 ====== */
.product-gallery .main-image {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.product-gallery .main-image img {
    max-height: 380px;
    width: 100%;
    object-fit: cover;
}

.product-gallery .thumbnail {
    width: 72px;
    height: 54px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.product-gallery .thumbnail.active,
.product-gallery .thumbnail:hover {
    border-color: var(--primary-color);
}

.product-gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info .product-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-info .product-description {
    font-size: 14px;
    line-height: 1.8;
}

.product-info .product-price {
    background: #fff8f0;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 20px 0;
}

.product-info .price-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--danger-color);
}

/* ====== Tab样式 ====== */
.nav-tabs {
    border-bottom: 1px solid var(--border-color);
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 14px;
    position: relative;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--primary-color);
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
}

/* ====== 表单样式 ====== */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.form-control-lg,
.form-select-lg {
    padding: 12px 16px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

/* ====== 文字截断 ====== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ====== 响应式设计 ====== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .stat-number {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    section {
        padding: 50px 0;
    }

    .navbar-collapse {
        background: #fff;
        border-radius: var(--radius-md);
        padding: 16px;
        margin-top: 10px;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-color);
    }

    .page-header {
        padding: 60px 0 40px;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item {
        padding-left: 25px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-item {
        flex: 0 0 45%;
    }

    .stat-number {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .category-btn {
        font-size: 12px;
        padding: 5px 14px;
    }

    .category-icon {
        width: 46px;
        height: 46px;
    }

    .category-icon i {
        font-size: 20px;
    }

    .process-number {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .process-arrow {
        display: none !important;
    }
    
    .page-header {
        padding: 50px 0 30px;
    }

    .page-header h1 {
        font-size: 22px;
    }
    
    .card-img-wrapper {
        height: 160px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 22px;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .product-info .price-value {
        font-size: 26px;
    }
}

/* ====== 滚动条美化 ====== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ====== 选中文字样式 ====== */
::selection {
    background: var(--primary-color);
    color: #fff;
}

/* ====== Toast 提示 ====== */
.toast-container {
    z-index: 9999;
}

.toast {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}
