/* 云南凡见智慧科技有限公司 - 主样式文件 */

/* Tailwind 配置将通过内联脚本保留，自定义工具类在这里定义 */

/* 自定义工具类 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .transition-all-300 {
        transition: all 300ms ease-in-out;
    }
    .hover-lift {
        transition: all 300ms ease-in-out;
    }
    .hover-lift:hover {
        transform: translateY(-0.25rem);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
    .bg-gradient-primary {
        background: linear-gradient(135deg, #2563EB 0%, #F97316 100%);
    }
    .bg-gradient-secondary {
        background: linear-gradient(135deg, #F97316 0%, #2563EB 100%);
    }
    .bg-gradient-blue {
        background: linear-gradient(135deg, #165DFF 0%, #0FC6C2 100%);
    }
}

@layer components {
    .section-title {
        display: inline-block;
        position: relative;
        padding-bottom: .25rem;
    }
    .section-title::after {
        content: "";
        display: block;
        width: 64px;
        height: 3px;
        background: #2563EB;
        border-radius: 9999px;
        margin: .5rem auto 0;
    }
    .section-subtitle {
        max-width: 44rem;
        margin-left: auto;
        margin-right: auto;
        color: #4E5969;
    }
    .metric-card {
        background: #F7F8FA;
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 6px 14px rgba(31, 41, 55, .06);
        transition: transform .3s ease, box-shadow .3s ease;
    }
    .metric-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(31, 41, 55, .08);
    }
    .feature-card {
        background: #F7F8FA;
        border-radius: 16px;
        box-shadow: 0 6px 14px rgba(31, 41, 55, .06);
        transition: transform .3s ease, box-shadow .3s ease;
        cursor: pointer;
    }
    .feature-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(31, 41, 55, .1);
    }
    .icon-ring {
        width: 56px;
        height: 56px;
        border-radius: 9999px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2563EB;
        background: radial-gradient(closest-side, rgba(37,99,235,.12), transparent 70%);
        box-shadow: inset 0 0 0 1px rgba(37,99,235,.15);
        margin: 0 auto .75rem;
    }
    .btn-soft {
        background: #F3F4F6;
        color: #1D2129;
        border-radius: 9999px;
        padding: .75rem 1rem;
        transition: background .2s ease, transform .2s ease;
    }
    .btn-soft:hover {
        background: #E5E7EB;
        transform: translateY(-1px);
    }
    .timeline-line {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        bottom: 0;
        width: 2px;
        background: #E5E6EB;
    }
    .timeline-dot {
        width: 32px;
        height: 32px;
        border-radius: 9999px;
        background: #2563EB;
        color: #FFFFFF;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 16px rgba(37,99,235,.25);
    }
    .bg-grid {
        background-image:
            linear-gradient(0deg, rgba(229,230,235,.5) 1px, transparent 1px),
            linear-gradient(90deg, rgba(229,230,235,.5) 1px, transparent 1px);
        background-size: 24px 24px;
    }
    .glass-card {
        background: rgba(255,255,255,.7);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,.6);
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(17,24,39,.08);
    }
    .gradient-text {
        background: linear-gradient(90deg, #2563EB, #F97316);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    .honor-card {
        border: 1px solid rgba(37,99,235,.15);
        transition: box-shadow .3s ease, transform .3s ease;
    }
    .honor-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 28px rgba(31,41,55,.12);
    }
    .team-card {
        border: 1px solid rgba(37,99,235,.12);
        transition: transform .3s ease, box-shadow .3s ease;
    }
    .team-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(31,41,55,.12);
    }
    
    .mobile-panel {
        background: rgba(255,255,255,.9);
        border: 1px solid rgba(229,230,235,.8);
        backdrop-filter: blur(10px);
        box-shadow: 0 12px 28px rgba(17,24,39,.12);
        transform: translateY(-8px);
        opacity: 0;
        transition: transform .25s ease, opacity .25s ease;
    }
    .mobile-panel.open {
        transform: translateY(0);
        opacity: 1;
    }
    .img-zoom {
        transition: transform .2s ease;
    }
    .img-zoom:hover {
        transform: scale(1.03);
    }
    .soft-card {
        background: #FFFFFF;
        border: 1px solid rgba(229,230,235,.8);
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(17,24,39,.06);
    }
    .icon-badge {
        width: 56px;
        height: 56px;
        border-radius: 9999px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: radial-gradient(closest-side, rgba(37,99,235,.12), rgba(37,99,235,.06));
        color: #2563EB;
        box-shadow: inset 0 0 0 1px rgba(37,99,235,.15);
    }
    .hamburger-btn {
        width: 42px;
        height: 42px;
        border-radius: 9999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(37,99,235,.15);
        background: rgba(255,255,255,.85);
        box-shadow: 0 6px 16px rgba(31,41,55,.08);
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }
    .hamburger-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(31,41,55,.12);
        background: rgba(255,255,255,.95);
    }
    .hamburger {
        position: relative;
        width: 20px;
        height: 16px;
    }
    .hamburger span {
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        background: #1D2129;
        border-radius: 2px;
        transition: transform .25s ease, opacity .2s ease, top .25s ease;
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 7px; }
    .hamburger span:nth-child(3) { top: 14px; }
    .hamburger-btn.open .hamburger span:nth-child(1) {
        top: 7px;
        transform: rotate(45deg);
    }
    .hamburger-btn.open .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.open .hamburger span:nth-child(3) {
        top: 7px;
        transform: rotate(-45deg);
    }
}

/* 全局样式 */
body {
    font-family: 'Inter', sans-serif;
    color: #1D2129;
    background-color: #FFFFFF;
    overflow-y: overlay;
    scroll-behavior: smooth;
}

/* 导航栏样式增强 */
#navbar {
    transition: all 0.3s ease;
}

/* 轮播图样式 */
.carousel-item {
    opacity: 0;
    transition: opacity 1000ms ease-in-out;
}

.carousel-item_active {
    opacity: 1;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 移动端产品分类菜单样式 */
.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.mobile-dropdown-content:not(.hidden) {
    max-height: 800px;
    opacity: 1;
}

.mobile-dropdown-content a {
    transition: all 0.2s ease;
}

.mobile-dropdown-content a:hover {
    transform: translateX(4px);
}

/* 修复hidden类的优先级问题 */
.mobile-dropdown-content.hidden {
    max-height: 0 !important;
    opacity: 0 !important;
}

.rich-text-content * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* 取消全局字体/行高/颜色的继承 */
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  /* 取消全局的边框、背景等 */
  border: none;
  background: none;
  /* 取消全局的列表样式 */
  list-style: none;
  /* 取消全局的文本装饰（如下划线） */
  text-decoration: none;
}

.rich-text-content p {
  margin: 8px 0;
  line-height: 1.6;
  font-size: 14px;
  color: #333;
}