/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

/* 主要内容区域 */
.main-content {
    margin-top: 76px;
}

/* 轮播图样式 */
.hero-section {
    height: 500px;
    overflow: hidden;
}

.hero-slide {
    height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.hero-icon {
    font-size: 15rem;
    color: rgba(255,255,255,0.1);
    text-align: center;
    display: block;
}

/* 分类卡片样式 */
.category-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.category-card:hover .category-icon {
    color: var(--success-color);
}

/* 软件卡片样式 */
.software-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.software-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #007bff, #28a745, #17a2b8, #ffc107, #dc3545, #6f42c1);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.software-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.software-card .card-body {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(248,249,250,0.95) 0%, rgba(233,236,239,0.95) 100%);
    backdrop-filter: blur(10px);
    position: relative;
}

.software-card .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0,123,255,0.03) 0%, 
        transparent 25%, 
        rgba(40,167,69,0.03) 50%, 
        transparent 75%, 
        rgba(255,193,7,0.03) 100%);
    pointer-events: none;
}

.card-img-top-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.card-img-top-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0,123,255,0.1) 0%, 
        transparent 30%, 
        rgba(40,167,69,0.1) 60%, 
        transparent 100%);
    pointer-events: none;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 16px 16px 0 0;
}

.software-card:hover .card-img-top {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.2);
}

.software-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.software-card:hover .card-title {
    color: #007bff;
}

.card-text {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.rating {
    margin-bottom: 1rem;
}

.rating .fa-star {
    font-size: 0.9rem;
    margin-right: 2px;
    transition: all 0.2s ease;
}

.rating .fa-star.text-warning {
    color: #ffc107 !important;
    text-shadow: 0 1px 2px rgba(255,193,7,0.3);
}

.rating .fa-star:not(.text-warning) {
    color: #e9ecef !important;
}

/* 按钮样式 */
.btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.4);
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
}

.btn-lg {
    padding: 0.8rem 2.2rem;
    font-size: 1.1rem;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
}

footer,
footer *,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer p,
footer span,
footer div,
footer a,
footer li,
footer i {
    color: #ffffff !important;
}

.bg-dark h6,
.bg-dark p,
.bg-dark a,
.bg-dark li,
.bg-dark span,
.bg-dark div {
    color: #ffffff !important;
}

footer.bg-dark h6,
footer.bg-dark p,
footer.bg-dark a,
footer.bg-dark li,
footer.bg-dark span,
footer.bg-dark div {
    color: #ffffff !important;
}

footer h5, footer h6 {
    color: #fff !important;
    margin-bottom: 1rem;
}

footer p {
    color: #fff !important;
}

footer a {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer .text-white {
    color: #fff !important;
}

footer ul li {
    color: #fff !important;
}

footer i {
    color: #fff !important;
}

footer .social-links a {
    color: #fff !important;
}

footer .social-links a i {
    color: #fff !important;
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* 字符图标样式 */
.char-icon {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    position: relative;
    border-radius: 16px 16px 0 0;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 软件分类主题色彩 */
.software-card[data-category="系统工具"] {
    background: linear-gradient(145deg, #e3f2fd 0%, #bbdefb 100%);
}

.software-card[data-category="系统工具"] .card-body {
    background: linear-gradient(135deg, rgba(227,242,253,0.95) 0%, rgba(187,222,251,0.95) 100%);
}

.software-card[data-category="办公软件"] {
    background: linear-gradient(145deg, #e8f5e8 0%, #c8e6c9 100%);
}

.software-card[data-category="办公软件"] .card-body {
    background: linear-gradient(135deg, rgba(232,245,232,0.95) 0%, rgba(200,230,201,0.95) 100%);
}

.software-card[data-category="多媒体"] {
    background: linear-gradient(145deg, #fff3e0 0%, #ffcc02 100%);
}

.software-card[data-category="多媒体"] .card-body {
    background: linear-gradient(135deg, rgba(255,243,224,0.95) 0%, rgba(255,204,2,0.95) 100%);
}

.software-card[data-category="游戏娱乐"] {
    background: linear-gradient(145deg, #fce4ec 0%, #f8bbd9 100%);
}

.software-card[data-category="游戏娱乐"] .card-body {
    background: linear-gradient(135deg, rgba(252,228,236,0.95) 0%, rgba(248,187,217,0.95) 100%);
}

.software-card[data-category="网络工具"] {
    background: linear-gradient(145deg, #e0f2f1 0%, #b2dfdb 100%);
}

.software-card[data-category="网络工具"] .card-body {
    background: linear-gradient(135deg, rgba(224,242,241,0.95) 0%, rgba(178,223,219,0.95) 100%);
}

.char-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 0%, transparent 50%),
                linear-gradient(45deg, 
                    rgba(255,255,255,0.1) 25%, 
                    transparent 25%, 
                    transparent 75%, 
                    rgba(255,255,255,0.1) 75%);
    background-size: 100% 100%, 30px 30px;
    background-position: 0 0, 0 0;
    opacity: 0.6;
    border-radius: 16px 16px 0 0;
}

.software-card:hover .char-icon {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.char-icon-1 { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); }
.char-icon-2 { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); }
.char-icon-3 { background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%); }
.char-icon-4 { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); color: #333; }
.char-icon-5 { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); }
.char-icon-6 { background: linear-gradient(135deg, #6f42c1 0%, #59359a 100%); }
.char-icon-7 { background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%); }
.char-icon-8 { background: linear-gradient(135deg, #20c997 0%, #17a085 100%); }
.char-icon-9 { background: linear-gradient(135deg, #e83e8c 0%, #d91a72 100%); }
.char-icon-0 { background: linear-gradient(135deg, #6c757d 0%, #545b62 100%); }

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 1000;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.back-to-top.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .software-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
    }
    
    .hero-section {
        height: 450px;
    }
    
    .hero-slide {
        height: 450px;
        text-align: center;
    }
    
    .hero-icon {
        font-size: 10rem;
        margin-top: 20px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 70px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
        background: linear-gradient(45deg, #fff, #e3f2fd);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .hero-section {
        height: 400px;
        position: relative;
        overflow: hidden;
    }
    
    .hero-slide {
        height: 400px;
        padding: 30px 0;
        position: relative;
    }
    
    .hero-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
        pointer-events: none;
    }
    
    .hero-icon {
        font-size: 7rem;
        margin-top: 15px;
        text-shadow: 0 0 30px rgba(255,255,255,0.3);
        animation: float 3s ease-in-out infinite;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }
    
    .display-4 {
        font-size: 2.2rem;
        margin-bottom: 15px !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.2);
        font-weight: 700;
    }
    
    .lead {
        font-size: 1.1rem;
        margin-bottom: 25px !important;
        text-shadow: 0 1px 5px rgba(0,0,0,0.1);
        opacity: 0.95;
    }
    
    .category-icon {
        font-size: 3.2rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 3px 6px rgba(102,126,234,0.4));
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
    }
    
    .category-card:hover .category-icon {
        transform: scale(1.1) rotateY(10deg);
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 4px 8px rgba(240,147,251,0.5));
    }
    
    .category-card {
        background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 24px;
        box-shadow: 0 10px 35px rgba(0,0,0,0.12);
        border: 2px solid rgba(255,255,255,0.6);
        backdrop-filter: blur(15px);
        transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
        overflow: hidden;
    }
    
    .category-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, 
            rgba(102,126,234,0.03) 0%, 
            transparent 30%, 
            rgba(118,75,162,0.03) 70%, 
            transparent 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .category-card:hover::before {
        opacity: 1;
    }
    
    .category-card:hover {
        transform: translateY(-12px) scale(1.05) rotateY(3deg);
        box-shadow: 0 25px 50px rgba(0,0,0,0.18);
        background: linear-gradient(145deg, #ffffff 0%, #e3f2fd 100%);
        border-color: rgba(102, 126, 234, 0.3);
    }
    
    .card-img-top-wrapper {
        height: 220px;
        border-radius: 24px 24px 0 0;
        overflow: hidden;
        position: relative;
        margin: 3px 3px 0 3px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    }
    
    .card-img-top-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, 
            rgba(102,126,234,0.15) 0%, 
            transparent 25%, 
            rgba(118,75,162,0.15) 50%, 
            transparent 75%,
            rgba(240,147,251,0.15) 100%);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .software-card:hover .card-img-top-wrapper::after {
        opacity: 1;
    }
    
    .software-card {
        margin-bottom: 35px;
        background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 28px;
        box-shadow: 0 12px 35px rgba(0,0,0,0.1);
        border: 2px solid rgba(255,255,255,0.8);
        backdrop-filter: blur(20px);
        transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow: hidden;
        position: relative;
        animation: fadeInUp 0.8s ease-out;
    }
    
    .software-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
        border-radius: 28px 28px 0 0;
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }
    
    .software-card:hover::before {
        transform: scaleX(1);
    }
    
    .software-card:hover {
        transform: translateY(-15px) scale(1.04) rotateY(2deg);
        box-shadow: 0 30px 60px rgba(0,0,0,0.18);
        background: linear-gradient(145deg, #ffffff 0%, #e3f2fd 100%);
        border-color: rgba(102, 126, 234, 0.4);
    }
    
    .software-card .card-body {
        padding: 1.5rem;
        background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
        backdrop-filter: blur(10px);
        position: relative;
    }
    
    .software-card .card-body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 20%, rgba(0,123,255,0.05) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(40,167,69,0.05) 0%, transparent 50%);
        pointer-events: none;
        border-radius: 0 0 24px 24px;
    }
    
    .card-title {
        font-size: 1.15rem;
        margin-bottom: 12px;
        font-weight: 700;
        color: #2c3e50;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        background: linear-gradient(135deg, #2c3e50 0%, #667eea 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        transition: all 0.3s ease;
    }
    
    .software-card:hover .card-title {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        transform: translateY(-2px);
    }
    
    .card-text {
        font-size: 0.98rem;
        line-height: 1.6;
        color: #5a6c7d;
        opacity: 0.95;
        text-shadow: 0 1px 2px rgba(0,0,0,0.05);
        transition: color 0.3s ease;
    }
    
    .software-card:hover .card-text {
        color: #4a5568;
    }
    
    /* 导航栏搜索框优化 */
      .navbar .d-flex {
          flex-direction: column;
          width: 100%;
          gap: 15px;
          margin-top: 20px;
          padding: 20px 15px 15px;
          background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
          border-radius: 15px;
          border: 1px solid rgba(255,255,255,0.2);
          backdrop-filter: blur(10px);
      }
      
      .navbar .d-flex form {
          width: 100%;
          margin-right: 0 !important;
          margin-bottom: 0;
          display: flex;
          flex-direction: column;
          gap: 10px;
      }
      
      .navbar .d-flex form .form-control {
          margin-bottom: 0;
          margin-right: 0 !important;
          border-radius: 12px;
          border: 2px solid rgba(255,255,255,0.3);
          background: rgba(255,255,255,0.9);
          backdrop-filter: blur(10px);
          box-shadow: 0 4px 15px rgba(0,0,0,0.1);
          transition: all 0.3s ease;
      }
      
      .navbar .d-flex form .form-control:focus {
          border-color: rgba(255,255,255,0.8);
          box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.3);
          background: rgba(255,255,255,1);
      }
      
      .navbar .d-flex form .btn {
          width: 100%;
          border-radius: 12px;
          background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
          border: 2px solid rgba(255,255,255,0.3);
          color: var(--primary-color);
          font-weight: 600;
          box-shadow: 0 4px 15px rgba(0,0,0,0.1);
          transition: all 0.3s ease;
      }
      
      .navbar .d-flex form .btn:hover {
          background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 100%);
          transform: translateY(-2px);
          box-shadow: 0 6px 20px rgba(0,0,0,0.15);
      }
      
      .navbar .d-flex .btn {
          width: 100%;
          margin-right: 0 !important;
          margin-bottom: 0;
          white-space: nowrap;
          border-radius: 12px;
          padding: 12px 20px;
          font-weight: 600;
          box-shadow: 0 4px 15px rgba(0,0,0,0.1);
          transition: all 0.3s ease;
          position: relative;
          overflow: hidden;
      }
      
      .navbar .d-flex .btn::before {
          content: '';
          position: absolute;
          top: 0;
          left: -100%;
          width: 100%;
          height: 100%;
          background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
          transition: left 0.5s ease;
      }
      
      .navbar .d-flex .btn:hover::before {
          left: 100%;
      }
      
      .navbar .d-flex .btn:hover {
          transform: translateY(-3px);
          box-shadow: 0 8px 25px rgba(0,0,0,0.2);
      }
      
      /* 导航栏用户菜单优化 */
      .navbar-nav {
          width: 100%;
          margin-top: 15px;
      }
      
      .navbar-nav .nav-item {
          width: 100%;
          margin-bottom: 5px;
      }
      
      .navbar-nav .nav-link {
          text-align: center;
          padding: 15px 20px;
          border-radius: 12px;
          background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
          border: 1px solid rgba(255,255,255,0.2);
          backdrop-filter: blur(10px);
          transition: all 0.3s ease;
          font-weight: 500;
      }
      
      .navbar-nav .nav-link:hover {
          background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
          transform: translateY(-2px);
          box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      }
      
      /* 用户积分显示优化 */
      .navbar-nav .badge {
          display: inline-block;
          margin-bottom: 8px;
          padding: 6px 12px;
          border-radius: 20px;
          background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
          box-shadow: 0 2px 10px rgba(255,193,7,0.3);
          font-weight: 600;
      }
    
    /* 页脚优化 */
    footer .col-lg-4,
    footer .col-lg-2 {
        margin-bottom: 30px;
    }
    
    footer h5,
    footer h6 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .main-content {
        margin-top: 65px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-section {
        height: 280px;
    }
    
    .hero-slide {
        height: 280px;
        padding: 15px 0;
    }
    
    .hero-icon {
        font-size: 4rem;
        margin-top: 10px;
    }
    
    .display-4 {
        font-size: 1.6rem;
        margin-bottom: 10px !important;
    }
    
    .lead {
        font-size: 0.9rem;
        margin-bottom: 15px !important;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .category-card .card-body {
        padding: 1rem;
    }
    
    .card-img-top-wrapper {
        height: 150px;
    }
    
    .software-card {
        margin-bottom: 20px;
    }
    
    .software-card .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .card-text {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    /* 按钮组优化 */
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 12px;
    }
    
    .rating {
        align-self: flex-start;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .btn-group .btn {
        margin-bottom: 0;
        border-radius: 15px !important;
        padding: 14px 20px;
        font-weight: 600;
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
        overflow: hidden;
    }
    
    .btn-group .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.6s ease;
    }
    
    .btn-group .btn:hover::before {
        left: 100%;
    }
    
    .btn-group .btn:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    
    /* 导航栏下拉菜单优化 */
    .dropdown-menu {
        width: 100%;
        border-radius: 18px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        border: 2px solid rgba(255,255,255,0.3);
        backdrop-filter: blur(20px);
        background: rgba(255,255,255,0.95);
        padding: 10px;
    }
    
    .dropdown-item {
        padding: 15px 20px;
        font-size: 0.98rem;
        border-radius: 12px;
        margin-bottom: 5px;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    .dropdown-item:hover {
        background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
        transform: translateX(5px);
        color: #667eea;
    }
    
    .dropdown-item:last-child {
        margin-bottom: 0;
    }
    
    /* 轮播图控制按钮优化 */
    .carousel-control-prev,
    .carousel-control-next {
        width: 60px;
        height: 60px;
        top: 50%;
        transform: translateY(-50%);
        background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
        border-radius: 50%;
        border: 3px solid rgba(255,255,255,0.3);
        backdrop-filter: blur(10px);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }
    
    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background: linear-gradient(135deg, rgba(102,126,234,0.8) 0%, rgba(118,75,162,0.8) 100%);
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 12px 35px rgba(102,126,234,0.4);
        border-color: rgba(255,255,255,0.6);
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 24px;
        height: 24px;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin: 0 5px;
        background: rgba(255,255,255,0.6);
        border: 2px solid rgba(255,255,255,0.8);
        transition: all 0.3s ease;
    }
    
    .carousel-indicators .active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: scale(1.2);
        box-shadow: 0 4px 15px rgba(102,126,234,0.4);
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 250px;
    }
    
    .hero-slide {
        height: 250px;
        padding: 10px 0;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .display-4 {
        font-size: 1.4rem;
    }
    
    .lead {
        font-size: 0.85rem;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 6px 16px;
    }
    
    .category-icon {
        font-size: 1.8rem;
    }
    
    .card-img-top-wrapper {
        height: 120px;
    }
    
    .software-card .card-body {
        padding: 0.8rem;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
    
    /* 页面标题优化 */
    h2 {
        font-size: 1.5rem;
        margin-bottom: 30px !important;
    }
    
    /* 间距优化 */
     .py-5 {
         padding-top: 2rem !important;
         padding-bottom: 2rem !important;
     }
     
     .mb-5 {
         margin-bottom: 2rem !important;
     }
     
     /* 图片加载优化 */
     .card-img-top,
     .char-icon {
         background-color: #f8f9fa;
         background-image: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                          linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                          linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                          linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
         background-size: 20px 20px;
         background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
     }
     
     /* 内容加载动画 */
     .software-card,
     .category-card {
         animation: fadeInUp 0.6s ease-out;
     }
     
     @keyframes fadeInUp {
         from {
             opacity: 0;
             transform: translateY(20px);
         }
         to {
             opacity: 1;
             transform: translateY(0);
         }
     }
     
     /* 性能优化 */
     .software-card:hover,
     .category-card:hover {
         will-change: transform;
     }
     
     .card-img-top {
         will-change: transform;
     }
 }

/* 表单样式 */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
}

/* 消息提示样式 */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

.alert-dismissible .btn-close {
    padding: 1rem 1rem;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background-color: #333;
    border-radius: 6px;
}

/* 模态框样式 */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* 分页样式 */
.pagination {
    margin-bottom: 0;
}

.page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 徽章样式 */
.badge {
    font-weight: 500;
    border-radius: 12px;
}

/* 进度条样式 */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* 列表组样式 */
.list-group-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    /* 增加触摸目标大小 */
    .btn {
        min-height: 48px;
        padding: 12px 18px;
    }
    
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .dropdown-item {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    /* 改善文本可读性 */
    body {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .card-text {
        line-height: 1.6;
        font-size: 0.98rem;
    }
    
    .card-title {
        font-size: 1.15rem;
        font-weight: 700;
    }
    
    /* 徽章和评分优化 */
    .badge {
        padding: 8px 15px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: 2px solid rgba(255,255,255,0.3);
        transition: all 0.3s ease;
    }
    
    .badge:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 5px 15px rgba(102,126,234,0.4);
    }
    
    .badge-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .badge-success {
        background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    }
    
    .badge-warning {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    }
    
    .badge-info {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    }
    
    /* 评分星星优化 */
    .text-warning {
        color: #ffc107 !important;
        filter: drop-shadow(0 2px 4px rgba(255,193,7,0.3));
        transition: all 0.3s ease;
    }
    
    .text-warning:hover {
        filter: drop-shadow(0 3px 6px rgba(255,193,7,0.5));
        transform: scale(1.1);
    }
    
    /* 小图标优化 */
    .fas, .far {
        filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
        transition: all 0.3s ease;
    }
    
    /* 优化表单输入 */
    .form-control {
        min-height: 48px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 优化链接间距 */
    a {
        text-decoration: none;
    }
    
    a:hover {
        text-decoration: underline;
    }
    
    /* 软件卡片触摸优化 */
    .software-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    .software-card:active {
        transform: scale(0.97) translateY(-5px);
        transition: transform 0.1s ease;
    }
    
    /* 分类卡片触摸优化 */
    .category-card {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    .category-card:active {
        transform: scale(0.97) translateY(-5px);
        transition: transform 0.1s ease;
    }
    
    /* 按钮触摸反馈 */
    .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* 链接触摸反馈 */
    .nav-link:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

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

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

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

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

/* 移动端滚动条优化 */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: linear-gradient(135deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.1) 100%);
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, rgba(102,126,234,0.6) 0%, rgba(118,75,162,0.6) 100%);
        border-radius: 4px;
        border: 1px solid rgba(255,255,255,0.2);
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, rgba(102,126,234,0.8) 0%, rgba(118,75,162,0.8) 100%);
    }
    
    /* 移动端导航栏优化 */
    .navbar-collapse {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        background: rgba(13, 110, 253, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 0 0 15px 15px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .nav-link {
        padding: 12px 15px;
        border-radius: 8px;
        transition: all 0.3s ease;
        background: rgba(255,255,255,0.1);
        margin-bottom: 5px;
        color: white !important;
    }
    
    .nav-link:hover {
        background: rgba(255,255,255,0.2);
        transform: translateX(5px);
    }
    
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 5px;
        border: none;
        box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
        background: rgba(255,255,255,0.95);
        max-height: 200px;
        overflow-y: auto;
    }
    
    .dropdown-item {
        padding: 10px 15px;
        color: #333;
    }
    
    .dropdown-item:hover {
        background: rgba(13, 110, 253, 0.1);
        color: #0d6efd;
    }
    
    .navbar .d-flex {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        gap: 10px;
    }
    
    .navbar .d-flex form {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .navbar .d-flex .btn {
        width: 100%;
        margin-bottom: 8px;
        justify-content: center;
    }
    
    .navbar .dropdown {
        width: 100%;
    }
    
    .navbar .dropdown .btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* 移动端论坛帖子内容优化 */
@media (max-width: 768px) {
    /* 帖子内容容器优化 */
    .post-content {
        flex-direction: column;
        margin-bottom: 1.5rem;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    /* 作者信息区域优化 */
    .post-author {
        border-radius: 15px 15px 0 0;
        padding: 1rem;
        min-height: auto;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom: 2px solid rgba(0,123,255,0.1);
    }
    
    /* 帖子主体内容区域优化 */
    .post-body {
        padding: 1.5rem;
        flex: 1;
        min-height: auto;
        background: white;
        border-radius: 0 0 15px 15px;
    }
    
    /* 作者头像优化 */
    .author-avatar {
        width: 50px;
        height: 50px;
        margin: 0 auto 0.8rem;
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        box-shadow: 0 3px 10px rgba(0,123,255,0.3);
        border: 3px solid rgba(255,255,255,0.8);
    }
    
    /* 作者信息文字优化 */
    .author-info {
        font-size: 0.85rem;
        color: #6c757d;
        line-height: 1.4;
    }
    
    /* 楼层号优化 */
    .floor-number {
        color: #007bff;
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 1rem;
        padding: 0.3rem 0.8rem;
        background: linear-gradient(135deg, rgba(0,123,255,0.1) 0%, rgba(0,123,255,0.05) 100%);
        border-radius: 15px;
        display: inline-block;
        border: 1px solid rgba(0,123,255,0.2);
    }
    
    /* 帖子内容文字优化 */
    .post-body .mb-3 {
        font-size: 1rem;
        line-height: 1.7;
        color: #333;
        margin-bottom: 1.5rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* 帖子时间和操作按钮区域优化 */
    .post-time {
        color: #6c757d;
        font-size: 0.85rem;
        margin-top: 1rem;
    }
    
    /* 回复表单优化 */
    .reply-form {
        border-radius: 15px;
        padding: 1.5rem;
        margin-bottom: 2rem;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,123,255,0.1);
    }
    
    /* 编辑器工具栏优化 */
    .editor-toolbar {
        border-radius: 10px 10px 0 0;
        padding: 0.8rem;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: 1px solid #dee2e6;
    }
    
    /* 内容编辑器优化 */
    .content-editor {
        border-radius: 0 0 10px 10px;
        min-height: 120px;
        font-size: 1rem;
        line-height: 1.6;
        padding: 1rem;
    }
    
    /* 主题标题区域优化 */
    .topic-header {
        border-radius: 15px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,123,255,0.1);
    }
    
    /* 主题统计信息优化 */
    .topic-stats {
        flex-wrap: wrap;
        gap: 0.8rem;
        font-size: 0.85rem;
        margin-top: 1rem;
    }
    
    .topic-stats span {
        background: rgba(0,123,255,0.1);
        padding: 0.3rem 0.8rem;
        border-radius: 12px;
        border: 1px solid rgba(0,123,255,0.2);
    }
    
    /* 侧边栏优化 */
    .sidebar-section {
        border-radius: 15px;
        padding: 1.2rem;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,123,255,0.1);
    }
    
    /* 相关帖子链接优化 */
    .related-post {
        padding: 0.8rem 0;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .related-post:hover {
        background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, rgba(0,123,255,0.1) 100%);
        padding: 0.8rem;
        margin: 0 -0.8rem;
        transform: translateX(5px);
    }
    
    /* 分页导航优化 */
    .pagination {
        margin-top: 2rem;
    }
    
    .page-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        margin: 0 2px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border: 1px solid rgba(0,123,255,0.2);
        color: #007bff;
        transition: all 0.3s ease;
    }
    
    .page-link:hover {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,123,255,0.3);
    }
    
    .page-item.active .page-link {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        border-color: #007bff;
        box-shadow: 0 3px 8px rgba(0,123,255,0.3);
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .back-to-top,
    footer {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .card {
        break-inside: avoid;
    }
}