* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 网站背景图 */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #565657 0%, #ffffff 100%),
                url('http://tuchuang.somm.uno/picture/灵钥软件社网站图标.jpg') center/cover fixed;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    z-index: -1;
}

/* 导航栏装饰 */
.nav-decoration {
    display: flex;
    align-items: center;
    gap: 10px;
}

.decoration-line {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2196f3, transparent);
    animation: lineGlow 2s infinite;
}

.decoration-dot {
    width: 6px;
    height: 6px;
    background: #2196f3;
    border-radius: 50%;
    animation: dotPulse 1.5s infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e0e0e0;
    z-index: 100;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 8px;
    border: 2px solid #2196f3;
}

.nav-title {
    color: #2196f3;
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Pacifico', cursive;
}

/* 搜索框样式 */
.search-container {
    position: relative;
    margin-left: auto;
    margin-right: 20px;
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 5px 12px;
    border: 1px solid rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 300px;
}

.search-box:focus-within {
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
    background: white;
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 6px 8px;
    font-size: 14px;
    color: #333;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-btn:hover {
    color: #2196f3;
    background: rgba(33, 150, 243, 0.1);
}

/* 搜索结果下拉框 */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
}

.search-results.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(33, 150, 243, 0.05);
}

.search-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(224, 224, 224, 0.5);
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-category {
    font-size: 12px;
    color: #666;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 搜索信息样式 */
.search-info {
    padding: 20px;
    text-align: center;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.search-info h3 {
    color: #2196f3;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.search-info p {
    color: #666;
    margin-bottom: 15px;
}

.search-info button {
    padding: 6px 12px;
    background: transparent;
    color: #2196f3;
    border: 1px solid #2196f3;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.search-info button:hover {
    background: #2196f3;
    color: white;
}

/* 搜索结果高亮 */
mark {
    background: #ffeb3b;
    color: #333;
    padding: 1px 2px;
    border-radius: 2px;
}

/* 软件展示区域 */
.software-display-area {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

/* 分页标签容器 */
.nav-tabs-container {
    width: 100%;
    background: rgba(248, 249, 250, 0.8);
    border-bottom: 1px solid rgba(233, 236, 239, 0.5);
    padding: 0;
}

.nav-tabs {
    display: flex;
    width: 100%;
    background: transparent;
}

/* 分页标签 - 增强特效 */
.nav-tab {
    flex: 1;
    background: transparent;
    color: #666;
    border: none;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.95em;
    white-space: nowrap;
    font-weight: 500;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.1), transparent);
    transition: left 0.6s;
}

.nav-tab:hover::before {
    left: 100%;
}

.nav-tab:hover {
    background: rgba(33, 150, 243, 0.08);
    color: #1976d2;
    transform: translateY(-2px);
}

.nav-tab.active {
    background: rgba(255, 255, 255, 0.9);
    color: #2196f3;
    transform: translateY(0);
}

/* 弹动特效 */
.nav-tab:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* 横线特效 - 增强跳动效果 */
.tab-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #2196f3;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%);
    animation: none;
}

.nav-tab.active .tab-line {
    width: 80%;
    animation: linePulse 2s infinite;
}

@keyframes linePulse {
    0%, 100% {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scaleX(1.1);
        opacity: 0.8;
    }
}

.tab-text {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.nav-tab.active .tab-text {
    font-weight: 600;
    transform: scale(1.05);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标签内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 区域样式 - 修改：移除边框和背景 */
.section {
    margin: 0;
    padding: 20px 15px;
    background: transparent;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.section:not(:last-child) {
    border-bottom: none;
}

.category-section {
    border-left: none;
    padding-left: 0;
}

/* 区域标题 - 修改：添加蓝色竖线 */
.section-title {
    color: #020202;
    font-size: 1em;
    text-align: left;
    margin-bottom: 20px;
    padding: 10px 15px;
    border-radius: 0;
    background: transparent;
    position: relative;
    font-family: 'Arial', sans-serif;
    font-weight: 400;
    border: none;
    backdrop-filter: none;
    display: flex;
    align-items: baseline;
    flex-direction: row
}

.section-title::before {
    content: '|';
    color: #2196f3;
    font-size: 1.2em;
    font-weight: bold;
    margin-right: 5px;
    line-height: 1;
}

/* 软件网格布局 - 电脑端 */
.software-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 0;
}

/* 软件项 - 电脑端网格布局 - 修改：移除卡片样式 */
.software-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: none;
    backdrop-filter: none;
    position: relative;
    overflow: visible;
    box-shadow: none;
}

.software-card::before {
    display: none;
}

.software-card:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

/* 软件图标 - 添加翻转效果 */
.software-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 2px solid rgba(224, 224, 224, 0.5);
    transition: all 0.6s ease;
    flex-shrink: 0;
    background: #f8f9fa;
    object-fit: cover;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.software-card:hover .software-icon {
    border-color: #2196f3;
    transform: rotateY(180deg);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

/* 软件内容区域 */
.software-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* 软件名称 */
.software-name {
    color: #333;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.software-card:hover .software-name {
    color: #2196f3;
}

.software-name:active {
    color: #1976d2;
}

/* 教程按钮 */
.tutorial-btn {
    background: linear-gradient(135deg, #2196f3, #21cbf3);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(33, 150, 243, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    font-weight: 500;
    width: auto;
    min-width: 70px;
}

.tutorial-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    background: linear-gradient(135deg, #1976d2, #03a9f4);
    color: #e3f2fd;
}

.tutorial-btn:active {
    transform: translateY(0);
    color: #bbdefb;
}

.tutorial-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.tutorial-btn:hover::before {
    left: 100%;
}

/* 波纹效果 */
.ripple {
    position: absolute;
    background: rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 平板设备适配 */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .software-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0;
    }

    .software-card {
        padding: 0;
    }

    .software-icon {
        width: 70px;
        height: 70px;
    }

    .section-title {
        font-size: 1.3em;
        padding: 8px 12px;
    }
    
    .search-container {
        margin-right: 15px;
    }
    
    .search-box {
        min-width: 180px;
        max-width: 220px;
    }
    
    .search-input {
        font-size: 13px;
    }
}

/* 手机设备适配 - 修改：改为横向布局 */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .software-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    .software-card {
        flex-direction: row;
        text-align: left;
        padding: 15px;
        gap: 15px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(224, 224, 224, 0.5);
    }

    .software-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        border-radius: 10px;
    }

    .software-content {
        align-items: flex-start;
        flex: 1;
        gap: 8px;
    }

    .software-name {
        text-align: left;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-size: 0.95em;
    }

    .tutorial-btn {
        padding: 6px 14px;
        font-size: 0.8em;
        border-radius: 14px;
    }

    .nav-decoration {
        display: none;
    }

    .section-title {
        font-size: 1.2em;
        padding: 6px 10px;
        margin-bottom: 15px;
    }

    .section {
        padding: 15px 10px;
    }
    
    .search-container {
        position: static;
        margin: 10px 0;
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .navbar {
        flex-wrap: wrap;
        padding: 10px 15px;
    }
    
    .nav-brand {
        order: 1;
        flex: 1;
    }
    
    .nav-decoration {
        order: 2;
        margin-left: auto;
        display: flex;
    }
    
    .search-box {
        min-width: 100%;
        max-width: 100%;
        margin: 5px 0;
    }
    
    .search-results {
        left: 0;
        right: 0;
        width: 100%;
    }
}

/* 桌面设备适配 */
@media (min-width: 769px) {
    body {
        font-size: 16px;
    }

    .software-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .search-box {
        min-width: 250px;
        max-width: 300px;
    }
}