/* modern-style.css */

/* 全局样式重置 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    font-size: 16px;
}

/* 主轮播区域 */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.8), rgba(59, 130, 246, 0.6));
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    bottom: 3rem;
    left: 3rem;
    right: auto;
    text-align: left;
    max-width: 500px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* 搜索区域 */
.search-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--border-color);
}

.keywords-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.keywords-label {
    font-weight: 600;
    color: var(--secondary-color);
    white-space: nowrap;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: white;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.keyword-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.search-form .input-group {
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-input:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.btn-search {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.btn-search:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

/* 侧边栏样式 */
.sidebar-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.sidebar-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 1rem;
    border: none;
}

.sidebar-card .card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    border-bottom: 1px solid var(--border-color);
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.category-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

/* 产品卡片样式 */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

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

.product-info {
    padding: 1rem;
}

.product-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.product-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.product-title a:hover {
    color: var(--primary-color);
}

/* 优势特色样式 */
.advantages-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.advantage-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: var(--transition);
}

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

.advantage-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.advantage-title {
    color: var(--dark-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.advantage-desc {
    color: var(--secondary-color);
    line-height: 1.7;
}

/* 关于我们和品牌介绍 */
.about-card,
.brand-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.brand-item {
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.brand-item:hover {
    background: var(--light-color);
}

.brand-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.brand-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.brand-title a:hover {
    color: var(--primary-color);
}

.brand-desc {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* 公司展示和团队 */
.showcase-card,
.team-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.showcase-carousel .carousel-item img {
    height: 300px;
    object-fit: cover;
}

/* 产品应用 */
.application-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.application-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.application-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.application-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.application-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.application-card:hover .application-overlay {
    opacity: 1;
}

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

.application-title {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.application-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.application-title a:hover {
    color: var(--primary-color);
}

/* 质量认证区域 */
.certification-section {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
}

/* 新闻资讯 */
.news-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.news-card .card-header {
    background: var(--light-color);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-card .card-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.news-item {
    transition: var(--transition);
}

.news-item:hover {
    background: var(--light-color);
}

.news-title {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.news-title:hover {
    color: var(--primary-color);
}

.knowledge-item {
    transition: var(--transition);
}

.knowledge-item:hover {
    background: var(--light-color);
    padding: 1rem;
    margin: -1rem;
    border-radius: var(--border-radius);
}

.knowledge-title a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

.knowledge-title a:hover {
    color: var(--primary-color);
}

/* 友情链接 */
.links-section {
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
}

.links-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.links-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    white-space: nowrap;
}

.links-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.links-content a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.links-content a:hover {
    color: var(--primary-color);
}

/* 按钮样式增强 */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .carousel-caption {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1.5rem;
        max-width: none;
    }
    
    .keywords-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .advantage-card {
        padding: 1.5rem;
    }
    
    .about-card,
    .brand-card,
    .showcase-card,
    .team-card {
        padding: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
/* 移动端菜单按钮 */
.mobile-menu-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
 
.mobile-menu-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}
 
/* 移动端菜单样式 */
.offcanvas-header {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
}
 
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
 
.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: var(--dark-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
 
.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--light-color);
    color: var(--primary-color);
    padding-left: 1.5rem;
}
 
/* 顶部信息栏 */
.top-info-bar {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}
 
.welcome-text {
    color: var(--secondary-color);
    font-weight: 500;
}
 
.top-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}
 
.top-nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}
 
.top-nav-links a:hover {
    color: var(--primary-color);
}
 
/* 主头部区域 */
.main-header {
    background: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}
 
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}
 
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
}
 
.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}
 
.logo-text .company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.2;
}
 
.logo-text .company-slogan {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.2;
}
 
.contact-info {
    text-align: right;
}
 
.service-hotline .hotline-label {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}
 
.service-hotline .hotline-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}
 
.service-hotline .hotline-number a {
    color: inherit;
    text-decoration: none;
}
 
.service-hotline .hotline-number a:hover {
    color: #1d4ed8;
}
 
/* 主导航栏 */
.main-navigation {
    background: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: var(--shadow-md);
}
 
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
 
.nav-item {
    position: relative;
}
 
/* 在 modern-style.css 中修改导航样式 */
.main-navigation .nav-link,
nav .nav-link,
.nav-menu .nav-link {
    display: block !important;
    padding: 1rem 1.5rem !important;
    color: white !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: var(--transition) !important;
    position: relative !important;
}
 
.main-navigation .nav-link:hover,
.main-navigation .nav-link.active,
nav .nav-link:hover,
nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}
 
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: white;
    transition: var(--transition);
    transform: translateX(-50%);
}
 
.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}
 
.mobile-company-name {
    padding: 1rem 0;
    text-align: center;
}
 
.mobile-company-name h2 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}
 
/* 脚部样式 */
.main-footer {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    margin-top: 3rem;
}
 
.footer-top {
    padding: 3rem 0 2rem;
}
 
.footer-section {
    margin-bottom: 2rem;
}
 
.footer-logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}
 
.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}
 
.company-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.9rem;
}
 
.footer-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}
 
.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}
 
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
 
.footer-links li {
    margin-bottom: 0.75rem;
}
 
.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: block;
}
 
.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}
 
.contact-details {
    margin-bottom: 1.5rem;
}
 
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}
 
.contact-icon {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}
 
.contact-content {
    flex: 1;
}
 
.contact-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}
 
.contact-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-decoration: none;
}
 
.contact-value:hover {
    color: white;
}
 
.social-links {
    display: flex;
    gap: 1rem;
}
 
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: var(--transition);
}
 
.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}
 
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
 
.copyright-info {
    font-size: 0.875rem;
}
 
.copyright-text,
.company-details {
    margin: 0.25rem 0;
    color: rgba(255, 255, 255, 0.8);
}
 
.copyright-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}
 
.copyright-info a:hover {
    color: white;
    text-decoration: underline;
}
 
.footer-certifications {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}
 
.cert-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
 
.cert-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
 
.cert-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}
 
/* 响应式设计 */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem 0;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .logo-text .company-name {
        font-size: 1.2rem;
    }
    
    .service-hotline .hotline-number {
        font-size: 1rem;
    }
    
    .footer-top {
        padding: 2rem 0 1rem;
    }
    
    .footer-certifications {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}
 
@media (max-width: 576px) {
    .logo-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .logo-text {
        text-align: left;
    }
    
    .service-hotline {
        text-align: center;
        margin-top: 1rem;
    }
    
    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .contact-details {
        text-align: left;
    }
}
 
/* 页面加载动画 */
.main-header,
.main-navigation {
    animation: slideDown 0.6s ease-out;
}
 
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
.main-footer {
    animation: fadeInUp 0.8s ease-out;
}

/* 现代化侧边工具栏样式 - 添加到 modern-style.css */

/* 主容器 */
.modern-side-tools {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.tools-container {
    background: white;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tools-container:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

/* 工具项 */
.tool-item {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 4px 0;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tool-item:hover {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.tool-item:hover .tool-icon,
.tool-item:hover .tool-label {
    color: white;
}

.tool-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* 工具图标 */
.tool-icon {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.tool-label {
    font-size: 10px;
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
}

/* 工具提示 */
.tool-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.tool-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: white;
}

.tool-item:hover .tool-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

.tooltip-content {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.tooltip-header {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.tooltip-body {
    padding: 16px;
    text-align: center;
}

.tooltip-footer {
    padding: 8px 16px;
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.tooltip-footer small {
    color: var(--secondary-color);
    font-size: 11px;
}

/* 服务链接 */
.service-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-color);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.service-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* 电话和邮件 */
.phone-number a,
.email-address a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.phone-number a:hover,
.email-address a:hover {
    text-decoration: underline;
}

.phone-desc,
.email-desc {
    color: var(--secondary-color);
    margin-top: 4px;
    display: block;
}

/* 微信二维码 */
.qr-code {
    margin-bottom: 12px;
}

.qr-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.qr-desc {
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 500;
}

/* 分享按钮 */
.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    color: var(--secondary-color);
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.share-btn i {
    font-size: 16px;
}

/* 工具栏切换按钮 */
.tools-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.tools-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.tools-toggle i {
    font-size: 20px;
}

/* 分享弹窗 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.show {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 300px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-modal.show .share-modal-content {
    transform: scale(1);
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
}

.share-modal-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.share-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.share-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.share-modal-body {
    padding: 24px;
    text-align: center;
}

.share-qr-code {
    margin-bottom: 16px;
}

.share-qr-code img {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.share-instruction {
    color: var(--secondary-color);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* 特定工具项样式 */
.tool-item[data-tool="customer-service"]:hover {
    background: linear-gradient(135deg, #10b981, #059669);
}

.tool-item[data-tool="phone"]:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.tool-item[data-tool="email"]:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.tool-item[data-tool="wechat"]:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.tool-item[data-tool="share"]:hover {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.tool-item[data-tool="top"]:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-side-tools {
        right: 15px;
    }
    
    .tools-container {
        padding: 6px;
    }
    
    .tool-item {
        width: 50px;
        height: 50px;
    }
    
    .tool-icon {
        font-size: 16px;
    }
    
    .tool-label {
        font-size: 9px;
    }
    
    .tool-tooltip {
        right: 60px;
        min-width: 180px;
    }
    
    .tools-toggle {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
    }
    
    .tools-toggle i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .tool-tooltip {
        position: fixed;
        right: 10px;
        left: 10px;
        top: auto;
        bottom: 80px;
        transform: none;
        min-width: auto;
    }
    
    .tool-tooltip::after {
        display: none;
    }
    
    .share-modal-content {
        margin: 20px;
        width: auto;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.tools-toggle {
    animation: pulse 2s infinite;
}

.tool-item {
    animation: fadeInRight 0.6s ease-out;
    animation-fill-mode: both;
}

.tool-item:nth-child(1) { animation-delay: 0.1s; }
.tool-item:nth-child(2) { animation-delay: 0.2s; }
.tool-item:nth-child(3) { animation-delay: 0.3s; }
.tool-item:nth-child(4) { animation-delay: 0.4s; }
.tool-item:nth-child(5) { animation-delay: 0.5s; }
.tool-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

