/* ============================================
   ELVAÃ§ÂÂµÃ¥Â¢Æ’Ã¥Â·Â¥Ã¤Â½Å“Ã¥Â®Â¤ - Ã¦Å¡â€”Ã¨â€°Â²Ã§Â´Â«Ã¨â€°Â²Ã¦Â¸ÂÃ¥ÂËœÃ¤Â¸Â»Ã©Â¢Ëœ
   ============================================ */

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --accent: #fbbf24;
    --accent-dark: #f59e0b;
    /* --bg-dark: #0f0f1a; */
    --bg-card: #2525250a;
    --bg-card-hover: #222240;
    --bg-input: #16162a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --border: rgba(139, 92, 246, 0.2);
    --border-hover: rgba(139, 92, 246, 0.5);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-hero: linear-gradient(135deg, rgba(15,15,26,0.95) 0%, rgba(26,26,46,0.9) 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Nunito', 'Microsoft YaHei', sans-serif;
    --font-body: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after {/* margin: 0; */padding: 0;box-sizing: border-box;}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    /* background-image: url('https://img1.baidu.com/it/u=2545443059,139526753&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500'); */
    /* background-size: cover; */
    background: #121212;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img {max-width: 100%;height: auto;display: block;}

.container {max-width: 1200px;margin: 0 auto;padding: 0 24px;}

/* ============ Header ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgb(0 0 0 / 74%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.header .container {
    display: flex; justify-content: space-between; align-items: center;
    height: 68px; flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2em;
    font-weight: 800;
    /* color: var(--primary); */
    color: #d6d9d9;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo:hover {/* color: var(--primary-light); */color: #ffffff;}

.logo i { font-size: 26px; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.nav-menu li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li.active a {
    color: var(--text-primary);
    /* background: rgba(139, 92, 246, 0.15); */
}

.nav-menu li.active a {
    color: #ffffff;
}

.nav-wrap {
    display: flex; align-items: center; gap: 4px;
    flex-shrink: 0; flex-wrap: nowrap;
}

/* Ã¥Â¯Â¼Ã¨Ë†ÂªÃ¦Â ÂÃ¦ÂÅ“Ã§Â´Â¢Ã¦Å’â€°Ã©â€™Â® */
.nav-search-btn {
    height: 36px;
    background: none; border: none; cursor: pointer;
    color: var(--text-secondary); font-size: 15px;
    padding: 12px; border-radius: var(--radius-pill);
    transition: var(--transition);
}
.nav-search-btn:hover {
    color: var(--primary-light);
    background: rgba(139, 92, 246, 0.1);
}

/* Ã¦ÂÅ“Ã§Â´Â¢Ã¦Â¨Â¡Ã¦â‚¬ÂÃ§Âªâ€”Ã¥ÂÂ£ */
.hidden { display: none !important; }

.search-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 15vh;
}
.search-modal-box {
    width: 90%; max-width: 560px;
    animation: searchModalIn 0.2s ease;
}
@keyframes searchModalIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.search-modal-input-wrap {
    display: flex; align-items: center; gap: 12px;
    /*background: var(--bg-card);*/
    background:#1a1a2eaa;
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.search-modal-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.search-modal-input-wrap > i:first-child {
    color: var(--text-muted); font-size: 18px; flex-shrink: 0;
}
.search-modal-input-wrap input {
    flex: 1; border: none; outline: none; background: none;
    color: var(--text-primary); font-size: 17px; padding: 18px 0;
    font-family: var(--font-body);
}
.search-modal-input-wrap input::placeholder { color: var(--text-muted); }
.search-modal-close-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 16px; padding: 6px 8px;
    border-radius: 6px; transition: var(--transition); flex-shrink: 0;
}
.search-modal-close-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.1); }
.search-modal-tip {
    text-align: center; color: var(--text-muted); font-size: 12px;
    margin-top: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    /* padding: 8px; */
}

.hamburger span {
    width: 24px; height: 2px; background: var(--primary);
    transition: var(--transition); display: block; border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ Hero ============ */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    background: #000000d6;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: ''; position: absolute;
    top: -200px; right: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: ''; position: absolute;
    bottom: -150px; left: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(251,191,36,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

/* ============ Hero Carousel ============ */
.hero-carousel {
    justify-content: center;
    padding: 0;
}

.carousel-wrapper {
    position: relative; width: 100%;
    min-height: 80vh; padding-top: 68px;
}

.carousel-track {
    position: absolute; top: 68px; left: 0; right: 0; bottom: 0;
}

.carousel-slide {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.6s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}

.carousel-slide .hero-content {
    position: relative; z-index: 1;
}

/* BannerÃ¥Â°ÂÃ©ÂÂ¢Ã¥â€ºÂ¾+Ã¦â€“â€¡Ã¥Â­â€”Ã¥Â¸Æ’Ã¥Â±â‚¬ */
.hero-slide-inner {
    display: flex; align-items: center; gap: 48px;
    width: 100%;
}

.hero-cover {
    flex-shrink: 0; width: 400px;
    display: flex; align-items: center; justify-content: center;
}

.hero-cover img {
    max-width: 100%; max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    animation: coverFloat 6s ease-in-out infinite;
}

@keyframes coverFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-slide-inner .hero-content {
    flex: 1; min-width: 0;
}

.carousel-btn {
    display: none;
}

.carousel-dots {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
}

.carousel-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer; transition: var(--transition); padding: 0;
}

.carousel-dot.active {
    background: var(--primary); border-color: var(--primary-light);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(139,92,246,0.5);
}

.hero-content {
    /* max-width: 620px; */
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 3.2em;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content h1 span { color: var(--primary); }

.hero-content p {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
    display: flex; gap: 48px; margin-top: 60px;
    position: relative; z-index: 1;
    padding: 24px 0 40px;
}

.hero-stats .stat { text-align: center; }
.hero-stats .stat-num {
    font-family: var(--font-display);
    font-size: 36px; font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stats .stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ============ Buttons ============ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 30px; border-radius: var(--radius-pill);
    text-decoration: none; font-size: 15px; font-weight: 600;
    transition: var(--transition); cursor: pointer; border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--gradient-primary); color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.45);
    color: var(--text-primary);
}

.btn-accent {
    background: var(--gradient-accent); color: #1a1a2e;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.25);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(251, 191, 36, 0.4);
    color: #1a1a2e;
}

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

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

.btn-sm { padding: 8px 20px; font-size: 13px; }

.btn-download {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-download:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px); color: var(--text-primary);
}

/* ============ Section ============ */
.section { padding: 80px 0; }

.section-header {
    text-align: center; margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 36px; font-weight: 800;
    margin-bottom: 12px; letter-spacing: -0.5px;
}

.section-header h2 .highlight { color: var(--primary); }

.section-header p { color: var(--text-secondary); font-size: 16px; }

/* ============ Features ============ */
.features {
    padding: 60px 0;
    /* background: var(--bg-card); */
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius);
    background: #0f0f0f;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 36px rgba(139, 92, 246, 0.15);
}

.feature-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: rgb(99 56 197 / 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #d2cce0ed;
}

.feature-card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ============ Software Grid ============ */
.software-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.software-card {
    border-radius: 6px;
    overflow: hidden;
    background: #2525250a;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.software-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.software-card .card-cover {
    height: 64px;
    margin: 20px 20px 0 20px;
    /* overflow: hidden; */
    position: relative;
    /* background: linear-gradient(135deg, #1e1e3a 0%, #2a2a4a 100%); */
    /* display: flex; */
    /* align-items: center; */
    justify-content: center;
}

.software-card .card-cover img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: transform 0.5s ease;
    float: left;
    margin-right: 20px;
}

.software-card:hover .card-cover img { transform: scale(1.08); }

.software-card .card-cover .tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-accent);
    color: #1a1a2e;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
}

.software-card .card-cover .tag-upcoming {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
}

.software-card.card-upcoming {
    border-color: rgba(251, 191, 36, 0.2);
}

.software-card.card-upcoming:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 16px 48px rgba(251, 191, 36, 0.1);
}

.btn-upcoming {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    color: #1a1a2e;
    padding: 10px 24px; border-radius: var(--radius-pill);
    font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    cursor: default; transition: var(--transition);
}

.software-card .card-cover .icon-placeholder {
    font-size: 64px;
    color: rgba(139, 92, 246, 0.3);
}

.software-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.software-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    /* margin-bottom: 8px; */
}

.software-card h3 a { color: var(--text-primary); text-decoration: none; }
.software-card h3 a:hover { color: var(--primary-light); }

.software-card .card-summary {
    color: var(--text-secondary); font-size: 14px;
    margin-bottom: 16px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.6;
}

.software-card .card-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px;
}

.software-card .card-tag {
    color: var(--primary-light); font-size: 12px;
    background: rgba(139, 92, 246, 0.1);
    padding: 3px 10px; border-radius: var(--radius-pill);
}

.software-card .card-version {
    color: var(--text-muted); font-size: 12px;
}

.software-card .card-footer {
    display: flex; justify-content: space-between; align-items: center;
}

.software-card .card-size {
    color: var(--text-muted); font-size: 13px;
}

/* ============ CTA ============ */
.cta {
    padding: 80px 0;
    background: var(--gradient-primary);
    text-align: center; position: relative; overflow: hidden;
}

.cta::before {
    content: ''; position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.cta h2 {
    font-family: var(--font-display);
    font-size: 36px; font-weight: 800;
    margin-bottom: 14px; position: relative; z-index: 1;
}

.cta p {
    font-size: 18px; margin-bottom: 28px;
    opacity: 0.9; position: relative; z-index: 1;
}

.cta .btn { position: relative; z-index: 1; }

/* ============ Page Header ============ */
.page-header {
    padding: 80px 0 20px;
    /* background: var(--gradient-hero); */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: ''; position: absolute;
    top: -100px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 42px; font-weight: 800;
    margin-bottom: 12px; position: relative; z-index: 1;
}

.page-header p {
    color: var(--text-secondary); font-size: 17px;
    position: relative; z-index: 1;
}

/* ============ Software Detail ============ */
.software-detail { padding: 40px 0 80px; }

.software-detail .detail-header {
    display: flex; gap: 32px; align-items: flex-start;
    margin-bottom: 40px; padding: 32px;
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border);
}

.software-detail .detail-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    /* border-radius: 20px; */
    overflow: hidden;
    /* background: linear-gradient(135deg, #2a2a4a 0%, #1e1e3a 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
}

.software-detail .detail-icon img {width: 100%;height: 100%;object-fit: contain;}
.software-detail .detail-icon .icon-placeholder {font-size: 80px;color: rgba(139,92,246,0.4);}

.software-detail .detail-info { flex: 1; }

.software-detail .detail-info h1 {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 800; margin-bottom: 10px;
}

.software-detail .detail-tags {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}

.software-detail .detail-tags .tag {
    background: rgba(139, 92, 246, 0.1); color: var(--primary-light);
    padding: 4px 14px; border-radius: var(--radius-pill);
    font-size: 13px;
}

.software-detail .detail-meta {
    display: flex; gap: 24px; color: var(--text-secondary); font-size: 14px;
}

.software-detail .detail-meta span { display: flex; align-items: center; gap: 6px; }
.software-detail .detail-meta i { color: var(--primary); }

.software-detail .detail-download {
    flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.software-detail .detail-content {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 36px;
    line-height: 1.9; color: var(--text-secondary);
}

.software-detail .detail-content h2,
.software-detail .detail-content h3 {
    color: var(--text-primary); margin: 24px 0 12px;
    font-family: var(--font-display);
}

.software-detail .detail-content h2 { font-size: 22px; }
.software-detail .detail-content h3 { font-size: 18px; }

.software-detail .detail-content ul,
.software-detail .detail-content ol {
    margin: 12px 0; padding-left: 24px;
}

.software-detail .detail-content li { margin-bottom: 6px; }

.software-detail .detail-content p { margin-bottom: 12px; }

.software-detail .detail-content img {
    border-radius: var(--radius-sm); margin: 16px 0;
    border: 1px solid var(--border);
}

.software-detail .detail-content code {
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 8px; border-radius: 4px;
    font-size: 14px; color: var(--primary-light);
}

.software-detail .detail-content pre {
    background: var(--bg-dark); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px;
    overflow-x: auto; margin: 16px 0;
}

.software-detail .detail-content pre code {
    background: none; padding: 0;
}

/* ============ About Page ============ */
.about-content {
    padding: 60px 0 80px;
}

.about-section {
    background: #2525250a;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 48px;
    margin-bottom: 32px;
}

.about-section h2 {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 800; margin-bottom: 20px;
}

.about-section p {
    color: var(--text-secondary); font-size: 16px;
    line-height: 1.9; margin-bottom: 16px;
}

.about-section .social-links {
    display: flex; gap: 16px; margin-top: 24px;
}

.about-section .social-links a {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--primary-light);
    transition: var(--transition);
}

.about-section .social-links a:hover {
    background: var(--primary); color: var(--text-primary);
    transform: translateY(-3px);
}

/* ============ Pagination ============ */
.pagination {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 48px;
}

.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 14px;
    text-decoration: none; transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
    background: var(--primary); color: var(--text-primary);
    border-color: var(--primary);
}

/* ============ Search ============ */
.search-bar {
    max-width: 500px; margin: 0 auto 40px;
    position: relative;
}

.search-bar input {
    width: 100%; padding: 14px 24px 14px 48px;
    border-radius: var(--radius-pill);
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-primary); font-size: 15px;
    outline: none; transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar i {
    position: absolute; left: 18px; top: 50%;
    transform: translateY(-50%); color: var(--text-muted);
}

/* ============ Footer ============ */
.footer {
    /* background: var(--bg-card); */
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 17px; font-weight: 700;
    margin-bottom: 18px; color: var(--text-primary);
}

.footer-col p {
    color: var(--text-secondary); font-size: 14px;
    line-height: 1.7;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    color: var(--text-secondary); font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--primary-light); padding-left: 4px; }

.footer-col .social-links {
    display: flex; gap: 12px; margin-top: 16px;
}

.footer-col .social-links a {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(139, 92, 246, 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--primary-light);
    transition: var(--transition);
}

.footer-col .social-links a:hover {
    background: var(--primary); color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 40px; padding: 20px 0;
    border-top: 1px solid var(--border);
    text-align: center; color: var(--text-muted); font-size: 13px;
}

/* ============ Empty State ============ */
.empty-state {
    text-align: center; padding: 90px 20px;
    color: var(--text-muted);
}

.empty-state i { font-size: 64px; margin-bottom: 20px; color: var(--border); }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { font-size: 15px; }

/* ============ Admin ============ */
.admin-login {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--bg-dark);
}

.admin-login .login-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 48px;
    width: 100%; max-width: 400px;
}

.admin-login .login-card h1 {
    font-family: var(--font-display);
    text-align: center; margin-bottom: 32px;
    font-size: 24px;
}

.admin-login .form-group { margin-bottom: 20px; }

.admin-login label {
    display: block; margin-bottom: 6px;
    font-size: 14px; color: var(--text-secondary);
}

.admin-login input[type="text"],
.admin-login input[type="password"] {
    width: 100%; padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-primary); font-size: 15px;
    outline: none; transition: var(--transition);
}

.admin-login input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.admin-login .btn { width: 100%; justify-content: center; }

.admin-login .error-msg {
    background: rgba(239, 68, 68, 0.1); color: #f87171;
    padding: 10px 16px; border-radius: var(--radius-sm);
    font-size: 14px; margin-bottom: 16px; text-align: center;
}

/* Admin Dashboard */
.admin-layout {
    display: flex; min-height: 100vh;
}

.admin-sidebar {
    width: 240px; background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px 0; flex-shrink: 0;
}

.admin-sidebar .sidebar-logo {
    padding: 0 24px 24px; border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.admin-sidebar .sidebar-logo h2 {
    font-family: var(--font-display);
    font-size: 18px; color: var(--primary);
}

.admin-sidebar .sidebar-logo p { font-size: 12px; color: var(--text-muted); }

.admin-sidebar .nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 24px; color: var(--text-secondary);
    text-decoration: none; font-size: 14px;
    transition: var(--transition);
}

.admin-sidebar .nav-item:hover,
.admin-sidebar .nav-item.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

.admin-sidebar .nav-item i { width: 20px; text-align: center; }

.admin-main {
    flex: 1; padding: 32px; background: var(--bg-dark);
    overflow-y: auto;
}

.admin-main h1 {
    font-family: var(--font-display);
    font-size: 24px; margin-bottom: 24px;
}

.admin-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}

.admin-table {
    width: 100%; border-collapse: collapse;
}

.admin-table th {
    text-align: left; padding: 12px 16px;
    font-size: 13px; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 600; text-transform: uppercase;
}

.admin-table td {
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.admin-table tr:hover td { background: rgba(139, 92, 246, 0.03); }

.status-badge {
    display: inline-block; padding: 3px 10px;
    border-radius: var(--radius-pill); font-size: 12px; font-weight: 600;
}

.status-badge.online { background: rgba(34,197,94,0.15); color: #4ade80; }
.status-badge.offline { background: rgba(239,68,68,0.15); color: #f87171; }
.status-badge.upcoming { background: rgba(251,191,36,0.15); color: #fbbf24; }

/* Admin Form */
.admin-form .form-group { margin-bottom: 20px; }

.admin-form label {
    display: block; margin-bottom: 6px;
    font-size: 14px; color: var(--text-secondary); font-weight: 500;
}

.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form textarea,
.admin-form select {
    width: 100%; padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-primary); font-size: 14px;
    outline: none; transition: var(--transition);
    font-family: var(--font-body);
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.admin-form textarea { min-height: 200px; resize: vertical; }

.admin-form select { cursor: pointer; }

.admin-form .form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.admin-form .form-actions {
    display: flex; gap: 12px; margin-top: 24px;
}

/* ============ Responsive ============ */
@media (max-width: 1200px) {
    .software-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
    .hero-cover { width: 320px; }
    .hero-cover img { max-height: 340px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-menu {
        display: none; position: absolute;
        top: 68px; left: 0; right: 0;
        background: rgba(15, 15, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column; padding: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active { display: flex; }

    .nav-menu li a {
        display: block; padding: 12px 16px;
    }

    .hero-content h1 { font-size: 36px; }
    .hero-stats { gap: 24px; }
    .hero-stats .stat-num { font-size: 28px; }

    .hero-slide-inner { flex-direction: column; gap: 24px; text-align: center; }
    .hero-cover { width: 200px; }
    .hero-cover img { max-height: 200px; }

    .carousel-dots { bottom: 20px; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .software-grid { grid-template-columns: repeat(2, 1fr); }

    .software-detail .detail-header { flex-direction: column; }
    .software-detail .detail-download { align-self: flex-start; }

    .footer-grid { grid-template-columns: 1fr; }

    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .admin-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 28px; }
    .hero-btns { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }
    .software-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .section-header h2 { font-size: 28px; }
    .page-header h1 { font-size: 32px; }
}
