/* 全局样式 */
html {
    scroll-behavior: smooth;
}

/* 导航栏样式 */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #1A73E8;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.active::after {
    width: 100% !important;
}

/* 新闻页面样式 */
.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px);
}

/* 移动端样式优化 */
@media (max-width: 640px) {
    .news-card img {
        object-fit: cover;
    }
}

/* 筛选按钮样式 */
.filter-active {
    background-color: #1A73E8 !important;
    color: white !important;
}

/* 工具类样式 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-shadow {
        text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    .glow {
        box-shadow: 0 0 15px rgba(26, 115, 232, 0.5);
    }
}

/* 首页特有样式 */
.hero-gradient {
    background: linear-gradient(135deg, #0F3460 0%, #16213E 100%);
}

.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    color: #1A73E8;
}

.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

.tech-pattern {
    background-image: 
        linear-gradient(rgba(26, 115, 232, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 115, 232, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-grid {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* About页面特有样式 */
.team-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card:hover {
    transform: translateY(-8px);
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #1A73E8;
    top: 0;
    bottom: 0;
    left: -30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #1A73E8;
    border-radius: 50%;
    top: 0;
    left: -37px;
}

.timeline-item:first-child::before {
    top: 24px;
}

.timeline-item:last-child::before {
    bottom: auto;
    height: 24px;
}

.counter-item {
    transition: all 0.5s ease;
}

.counter-item:hover {
    transform: translateY(-5px);
}

.counter-item i {
    transition: all 0.5s ease;
}

.counter-item:hover i {
    transform: scale(1.1);
    color: #1A73E8;
}

/* Contact页面特有样式 */
.form-input:focus {
    border-color: #1A73E8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.form-select:focus {
    border-color: #1A73E8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.form-textarea:focus {
    border-color: #1A73E8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.contact-info-item {
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
}

.contact-info-item i {
    transition: all 0.3s ease;
}

.contact-info-item:hover i {
    transform: scale(1.1);
    color: #1A73E8;
}

/* News Detail页面特有样式 */
.news-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0F3460;
}

.news-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.news-content ul, .news-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.news-content ul {
    list-style-type: disc;
}

.news-content ol {
    list-style-type: decimal;
}

.news-content li {
    margin-bottom: 0.5rem;
}

.news-content blockquote {
    border-left: 4px solid #1A73E8;
    padding-left: 1rem;
    font-style: italic;
    margin: 1.5rem 0;
    color: #4B5563;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Product Detail页面特有样式 */
.tab-active {
    color: #1A73E8 !important;
    border-bottom: 2px solid #1A73E8 !important;
}

.spec-row:nth-child(even) {
    background-color: rgba(232, 240, 254, 0.5);
}

/* 面包屑导航样式 */
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 1rem 0;
}

.breadcrumb-item {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.breadcrumb-item:hover {
    color: #1A73E8;
}

.breadcrumb-item.active {
    color: #0F3460;
    font-weight: 500;
    pointer-events: none;
}

.breadcrumb-separator {
    color: #D1D5DB;
    margin: 0 4px;
    font-size: 0.75rem;
}

a.page-link {
    display: block;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    padding: 0.5rem 1rem;
    --tw-border-opacity: 1;
    border: 1px rgb(209 213 219 / var(--tw-border-opacity, 1)) solid;
    border-left: 0;
    font-size: 14px;
}
.page-item .active a.page-link{background-color: rgb(26 115 232 / var(--tw-border-opacity, 1));}
.site-nav a.nav-link.text-white,.site-nav a.bg-techblue {
    text-wrap: nowrap;
}