body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    margin: 0;
}

.navbar {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 20px;
    will-change: transform;
    transform: translateZ(0);
    overflow: visible;
    height: 64px;
    backface-visibility: hidden;
    perspective: 1000px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.3s;
}

.navbar-link:hover {
    opacity: 0.8;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.navbar-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1rem;
    width: 200px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.search-btn:hover {
    color: white;
}

.search-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.search-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.search-toggle-btn i {
    font-size: 1.1rem;
}

.search-dropdown {
    position: fixed;
    top: 74px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    display: flex;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.search-dropdown .search-input {
    width: 200px;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn, .theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.lang-btn:hover, .theme-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.theme-btn {
    padding: 8px 12px;
}

.theme-btn i {
    font-size: 1.1rem;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
}

.lang-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    z-index: 1000;
    min-width: 100px;
}

.lang-dropdown-item {
    padding: 10px 16px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 8px;
}

.lang-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-center-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.user-center-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.user-center-btn i {
    font-size: 1.1rem;
}

body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .recent-updates,
body.dark-mode .software-card,
body.dark-mode .modal-content {
    background: linear-gradient(135deg, #2a2a4a 0%, #1f3a5f 100%);
}

body.dark-mode .software-name,
body.dark-mode .recent-updates h2,
body.dark-mode .software-detail-description h3,
body.dark-mode .software-detail-changelog h3 {
    color: white;
}

body.dark-mode .software-description,
body.dark-mode .software-detail-description p,
body.dark-mode .changelog-content {
    color: #b0b0b0;
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        min-height: 64px;
    }

    .navbar-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
    }

    .navbar-left {
        width: 100%;
        justify-content: center;
    }

    .navbar-center {
        width: 100%;
        margin: 10px 0;
    }

    .search-input {
        width: 100%;
    }

    .navbar-right {
        width: 100%;
        justify-content: center;
        gap: 5px;
    }

    .search-toggle-btn,
    .lang-btn,
    .theme-btn,
    .user-center-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .search-toggle-btn i,
    .theme-btn i,
    .user-center-btn i {
        font-size: 1rem;
    }

    .lang-btn {
        padding: 6px 12px;
        gap: 5px;
    }

    .lang-arrow {
        font-size: 0.7rem;
    }
}

.navbar a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 30px 0;
    color: white;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.recent-updates {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
}

.recent-updates h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #e94560;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-updates h2::before {
    content: '🔥';
}

.scroll-container {
    overflow: hidden;
    position: relative;
}

.scroll-content {
    display: flex;
    animation: scroll 20s linear infinite;
    gap: 20px;
}

.scroll-content:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.update-item {
    flex: 0 0 320px;
    background: linear-gradient(135deg, #2a2a4a 0%, #1f3a5f 100%);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.update-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.update-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.update-item-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
}

.update-item-content > div:first-child {
    color: #fff;
    font-weight: 500;
}

.update-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.update-item .package {
    font-size: 0.7em;
    color: #667eea;
    margin-top: 3px;
    font-family: 'Courier New', monospace;
}

.version-date-container {
    display: flex;
    gap: 8px;
    margin-top: 3px;
    align-items: center;
}

.update-item .version {
    font-size: 0.8em;
    color: #e94560;
    margin: 0;
}

.update-item .date {
    font-size: 0.7em;
    color: #b0b0b0;
    margin: 0;
}

.software-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.software-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.software-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
}

.software-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    padding: 10px;
    overflow: hidden;
}

.software-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.software-card:nth-child(2) .software-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 5px 20px rgba(240, 147, 251, 0.4);
}

.software-card:nth-child(3) .software-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
}

.software-name {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.software-package {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
    background: transparent;
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-block;
    margin: 0;
    position: absolute;
    bottom: 10px;
    right: 15px;
}

.version-date-row {
    display: block;
    margin-top: 5px;
    font-size: 0.7em;
    text-align: center;
}

.software-updated {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 5px;
    display: inline;
}

.software-version {
    color: rgba(255, 255, 255, 0.8);
    display: inline;
    font-weight: normal;
}

.software-description {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 72px;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.software-card:nth-child(2) .download-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}

.software-card:nth-child(2) .download-btn:hover {
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6);
}

.software-card:nth-child(3) .download-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.software-card:nth-child(3) .download-btn:hover {
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

footer {
    text-align: center;
    padding: 40px 0;
    color: white;
    opacity: 0.8;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-email {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.footer-info {
    font-size: 0.95em;
}

.footer-icp {
    font-size: 0.85em;
    opacity: 0.7;
}

footer a {
    color: white;
    text-decoration: none;
}

.footer-email a {
    margin: 0 10px;
}

.modal {
    display: flex !important;
    position: fixed !important;
    z-index: 1000 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    justify-content: center !important;
    align-items: center !important;
}

.modal-wrapper {
    position: relative !important;
    display: inline-block !important;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    padding: 30px !important;
    border-radius: 20px !important;
    text-align: center !important;
    max-width: 90% !important;
    position: relative !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
}

.modal-content img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.modal-content .close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 100;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    background: rgba(233, 69, 96, 0.8);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
}

.modal-content .close-btn:hover {
    color: #e94560;
}

.modal-content a:hover img {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.modal-content a {
    display: inline-block;
}

.modal-content p {
    color: #fff;
    font-size: 1.1em;
    margin: 0;
}

.software-detail {
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
}

.software-detail-fixed {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.software-detail-scrollable {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -10px;
    margin-bottom: 30px;
}

.software-detail-footer {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.software-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.software-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.software-detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.software-detail-title h2 {
    color: #fff;
    font-size: 1.8em;
    margin: 0 0 5px 0;
}

.software-detail-package {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier New', monospace;
}

.software-detail-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

.software-detail-description {
    margin-bottom: 25px;
}

.software-detail-description h3 {
    color: #e94560;
    font-size: 1.2em;
    margin: 0 0 10px 0;
}

.software-detail-description p {
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
}

.software-detail-changelog {
    margin-bottom: 25px;
}

.software-detail-changelog h3 {
    color: #e94560;
    font-size: 1.2em;
    margin: 0 0 10px 0;
}

.changelog-content {
    color: #b0b0b0;
    line-height: 1.6;
    white-space: pre-wrap;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.software-detail-scrollable::-webkit-scrollbar {
    width: 6px;
}

.software-detail-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.software-detail-scrollable::-webkit-scrollbar-thumb {
    background: rgba(233, 69, 96, 0.5);
    border-radius: 3px;
}

.software-detail-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 69, 96, 0.7);
}

.software-detail-links {
    text-align: center;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .software-section {
        grid-template-columns: 1fr;
    }

    .update-item {
        flex: 0 0 150px;
    }
    
    .modal-content .close-btn {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 28px;
        line-height: 35px;
    }

    .software-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .software-detail-info {
        flex-direction: column;
        gap: 5px;
    }
}
