:root {
    --bg-body: #111318;
    --bg-card: #1c1f26;
    --bg-input: #1c1f26;
    --border-color: #2a2e38;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.app-container {
    width: 100%;
    max-width: 1280px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    white-space: nowrap;
}

.logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 36px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    transition: all 0.2s;
}

.btn-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-header.primary {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.btn-header.primary:hover {
    background-color: var(--accent-blue-hover);
}

.btn-header svg {
    width: 16px;
    height: 16px;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 32px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding-bottom: 12px;
    margin-bottom: -13px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-item:hover {
    color: var(--text-main);
}

.nav-item.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.nav-item svg {
    width: 14px;
    height: 14px;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-item-dropdown {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-muted);
    padding-bottom: 12px;
    margin-bottom: -13px;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-item-dropdown:hover {
    color: var(--text-main);
}

.nav-item-dropdown svg {
    width: 14px;
    height: 14px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 14px;
    min-width: 320px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    transition: background 0.15s;
    color: var(--text-main);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dropdown-item:hover .dropdown-item-icon {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.dropdown-item-icon svg {
    width: 18px;
    height: 18px;
    color: var(--text-main);
}

.dropdown-item:hover .dropdown-item-icon svg {
    color: var(--accent-blue);
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.dropdown-item-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

main {
    flex: 1;
    padding-bottom: 60px;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 14px;
}

.modes-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.mode-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
    max-width: 500px;
    width: 100%;
}

.mode-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.mode-image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0d1117;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mode-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mode-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.mode-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    transition: all 0.2s;
    width: fit-content;
}

.btn-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-card svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.about-text {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 800px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 48px;
}

.info-table tr {
    border-bottom: 1px solid var(--border-color);
}

.info-table td {
    padding: 12px 0;
    vertical-align: top;
}

.info-table td:first-child {
    width: 200px;
    color: var(--text-main);
    font-weight: 500;
}

.info-table td:last-child {
    color: var(--text-muted);
    font-size: 13px;
}

.ip-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ip-list span {
    color: var(--text-main);
    font-family: monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.ip-list small {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 8px;
}

.social-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.2s ease;
    cursor: pointer;
    color: inherit;
}

.social-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: #22262e;
    transform: translateX(4px);
}

.social-btn-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.social-btn:hover .social-btn-icon {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.social-btn-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-main);
}

.social-btn:hover .social-btn-icon svg {
    color: var(--accent-blue);
}

.social-btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.social-btn-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.social-btn-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.social-btn:hover .social-btn-arrow {
    color: var(--text-main);
    transform: translateX(4px);
}

.social-btn-arrow svg {
    width: 20px;
    height: 20px;
}

.footer {
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--text-main);
}

.footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.footer-social a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--text-main);
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.footer-copyright a {
    color: var(--accent-blue);
}

.footer-copyright a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
    }

    nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .info-table td:first-child {
        width: 120px;
    }

    .social-btn {
        padding: 16px;
        gap: 16px;
    }

    .social-btn-icon {
        width: 40px;
        height: 40px;
    }

    .social-btn-icon svg {
        width: 20px;
        height: 20px;
    }
}
