/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox 滚动条样式 */
html {
    scrollbar-width: thick;
    scrollbar-color: #888 #f1f1f1;
}

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 头部样式 */
.header {
    background: #fff;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 170px;
    height: auto;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: rgba(0,0,0,.8);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link:hover {
    color:rgb(103 77 255/var(--tw-text-opacity,1));
    background-color: #f8f9fa;
}

.pill-buttons {
    display: flex;
    align-items: center;
    position: relative;
}

.pill-button {
    position: relative;
    padding: 8px 20px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

.red-button {
    background-color: #ef6739;
    border-radius: 15px 0 0 15px;
}

.blue-button {
    background-color: #3498db;
    border-radius: 0 15px 15px 0;
    margin-left: -1px;
}

.pill-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.red-button:hover {
    background-color: #c0392b;
}

.blue-button:hover {
    background-color: #2980b9;
}

.qr-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.red-button .qr-popup {
    min-width: 320px;
    right: -85px;
}

.red-button .qr-popup .qr-codes {
    display: flex;
    gap: 10px;
}

.blue-button .qr-popup {
    min-width: 400px;
    right: 0px;
}

.blue-button .qr-popup .qr-codes {
    display: flex;
    justify-content: center;
}

.pill-button:hover .qr-popup {
    opacity: 1;
    visibility: visible;
}

.qr-code {
    text-align: center;
    color: #333;
    font-size: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    flex: 1;
}

.qr-code:last-child {
    margin-bottom: 0;
}

.qr-image {
    width: 250px;
    height: 280px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.qr-code p {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.qr-description {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    line-height: 1.4;
    text-align: left;
    border-left: 3px solid #007bff;
}

.qr-description strong {
    color: #007bff;
    font-weight: 600;
}

/* 主要内容区域 */
.main {
    padding: 10px 0;
}

/* 英雄区域 */
.hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* 知识库精选区域 */
.knowledge-section {
    background: white;
    border-radius: 15px;
    padding: 0px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
    text-align: center;
}

.knowledge-highlight {
    background: linear-gradient(123.19deg,#1900a8,#7429ff 99.96%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1rem;
}

.features-section {
    margin: 40px 0;
}

.knowledge-layout {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    height: 472px;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.knowledge-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e8ecf0;
}

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

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-content {
    padding: 20px;
}

.card-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #2980b9;
}

.main-feature {
    flex: 1;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.main-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-feature:hover img {
    transform: scale(1.05);
}

.feature-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.main-feature:hover .feature-overlay {
    transform: translateY(0);
}

.feature-overlay h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.feature-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.small-features {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.small-feature {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.small-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.small-feature-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.small-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.small-feature:hover img {
    transform: scale(1.1);
}

.small-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 15px 12px 10px;
    transform: translateY(5px);
    transition: transform 0.3s ease;
}

.small-feature:hover .small-overlay {
    transform: translateY(0);
}

.small-overlay h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.small-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.2;
}

.load-more-section {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.article-link {
    color: #34495e;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-link:hover {
    color: #3498db;
    background-color: #ecf0f1;
    transform: translateX(5px);
}

.article-link:before {
    content: "📄";
    margin-right: 8px;
}

.more-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.view-more {
    text-align: center;
    margin-top: 40px;
}

.view-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0 20px;
    margin-top: 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.8;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

/* 联系我们二维码样式 */
.contact-qr-codes {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    justify-content: flex-start;
}

.contact-qr-item {
    text-align: center;
}

.contact-qr-image {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    object-fit: cover;
    margin-bottom: 0px;
}

.contact-qr-item p {
    margin: 0;
    font-size: 12px;
    color: #ccc;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* 友情链接样式 */
.friendly-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 14px 0;
    border-top: 1px solid #466788;
    margin-top: 2px;
    justify-content: center;
}

.friendly-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.friendly-links a:first-child {
    color: #fff;
    font-weight: 500;
}

.friendly-links a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2px;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-input {
        width: 200px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .knowledge-section {
        padding: 20px;
    }
    
    .knowledge-layout {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }
    
    .main-feature {
        height: 250px;
    }
    
    .small-features {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }
    
    .small-feature {
        height: 120px;
    }
    
    .feature-overlay {
        padding: 20px 15px 15px;
    }
    
    .feature-overlay h3 {
        font-size: 1.1rem;
    }
    
    .feature-overlay p {
        font-size: 0.9rem;
    }
    
    .small-overlay {
        padding: 10px 8px 6px;
    }
    
    .small-overlay h4 {
        font-size: 0.8rem;
    }
    
    .small-overlay p {
        font-size: 0.7rem;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-content {
        padding: 15px;
    }

    .section-title {
        font-size: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 30px 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .knowledge-section {
        padding: 15px;
    }
    
    .knowledge-item {
        padding: 15px;
    }
}

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

.knowledge-item {
    animation: fadeInUp 0.6s ease-out;
}

.knowledge-item:nth-child(2) {
    animation-delay: 0.1s;
}

.knowledge-item:nth-child(3) {
    animation-delay: 0.2s;
}

.knowledge-item:nth-child(4) {
    animation-delay: 0.3s;
}

.knowledge-item:nth-child(5) {
    animation-delay: 0.4s;
}

.knowledge-item:nth-child(6) {
    animation-delay: 0.5s;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 工具分类模块样式 */
.tools-section {
    background: white;
    border-radius: 15px;
    padding: 10px 10px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.tools-highlight {
    color: rgba(255, 255, 255, 0.9);
}

/* 工具分类标签 */
.tools-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: linear-gradient(102.97deg,#ebedf5,#f5f6fa);
    padding: 9px 24px;
    border-radius: 18px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.tool-tab {
    background: transparent;
    border: none;
    padding: 16px 24px;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.tool-tab:hover {
    background:#fff
    color: #3498db;
    box-shadow: 0 2px 4px #c7c3db;
    border-radius: 12px;
}

.tool-tab.active {
    background: #fff;
    color: rgb(28, 27, 27);
    box-shadow: 0 2px 4px #c7c3db;
}

/* 工具内容区域 */
.tools-content {
    position: relative;
    min-height: 400px;
}

.tool-category {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.tool-category.active {
    display: block;
}

/* 工具网格布局 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 工具卡片样式 */
.tool-card {
    background: white;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 80px;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

/* 工具图标 */
.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tool-icon.orange {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    color: white;
}

.tool-icon.blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.tool-icon.purple {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
}

.tool-icon.green {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
}

.tool-icon.red {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
}

.tool-icon.cyan {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    color: white;
}

.tool-icon.pink {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    color: white;
}

/* 工具信息 */
.tool-info {
    flex: 1;
}

.tool-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.3;
}

.tool-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* 响应式设计 - 工具模块 */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tools-section {
        padding: 30px 20px;
        margin: 30px 0;
    }
    
    .tools-tabs {
        gap: 4px;
        padding: 6px;
    }
    
    .tool-tab {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tool-card {
        padding: 15px;
        gap: 12px;
        min-height: 70px;
    }
    
    .tool-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .tool-info h4 {
        font-size: 14px;
    }
    
    .tool-info p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .tools-section {
        padding: 20px 15px;
    }
    
    .tools-tabs {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        border-radius: 15px;
    }
    
    .tool-tab {
        border-radius: 8px;
        min-width: auto;
        width: 100%;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tool-card {
        padding: 12px;
        gap: 10px;
    }
    
    .tool-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* 用户展示区样式 */
.user-showcase {
    padding: 40px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.user-showcase .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 60px;
    position: relative;
}

.user-showcase .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0px;
}

.showcase-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.showcase-item img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.showcase-item:hover img {
    filter: grayscale(0%);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .showcase-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .user-showcase {
        padding: 60px 0;
    }
    
    .user-showcase .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .user-showcase {
        padding: 40px 0;
    }
    
    .user-showcase .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .showcase-item {
        padding: 15px;
        min-height: 70px;
    }
}

@media (max-width: 480px) {
    .user-showcase .section-title {
        font-size: 1.5rem;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .showcase-item {
        padding: 12px;
        min-height: 60px;
    }
    
    .showcase-item img {
        max-height: 40px;
    }
}