@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');

:root {
    --primary-red: #e50914;
    --primary-red-hover: #ff4d4d;
    --dark-bg: #0f0f0f;
    --dark-surface: #1a1a2e;
    --dark-card: #252525;
    --dark-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --gradient-start: #1a1a2e;
    --gradient-end: #16213e;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

.stream-header-bar {
	width:85%;
	margin:auto;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--dark-border);
}

.header-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-red);
    transition: opacity 0.2s ease;
}

.header-logo:hover { opacity: 0.8; }

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.header-domain {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(229, 9, 20, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.domain-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-red);
    white-space: nowrap;
}

.domain-value {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: var(--primary-red);
    background: rgba(229, 9, 20, 0.15);
}

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    min-width: 280px;
    padding: 12px;
    display: none;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dropdown-item {
    padding: 6px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    color: var(--text-primary);
    background: rgba(229, 9, 20, 0.2);
}

.header-right {
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    overflow: hidden;
}

.search-input {
    padding: 8px 14px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    width: 180px;
    transition: all 0.2s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.1);
}

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

.search-btn {
    padding: 8px 18px;
    background: var(--primary-red);
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

.search-btn:hover {
    background: var(--primary-red-hover);
}

.hero-section {
	width:85%;
	margin: auto;
    position: relative;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(0, 0, 0, 0.2) 100%);
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(229, 9, 20, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero-icon {
    font-size: 24px;
}

.hero-tags {
    display: grid;
	grid-template-columns: repeat(12, 1fr); /* 4列 */
    flex-wrap: wrap;
    gap: 8px;
}
.hero-tags-title{
	display: grid;
	grid-template-columns: repeat(9, 1fr); /* 4列 */
	flex-wrap: wrap;
	gap: 8px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
	text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--dark-border);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.hero-tag:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.4);
    color: var(--primary-red-hover);
}

.content-wrapper {
    width: 85%;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
    display: flex;
    gap: 20px;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
}

.sidebar-section {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--dark-border);
}

.category-list,
.friend-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li,
.friend-links li {
    margin-bottom: 6px;
}

.category-list li:last-child,
.friend-links li:last-child {
    margin-bottom: 0;
}

.category-link,
.friend-links a {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.category-link:hover,
.friend-links a:hover {
    color: var(--text-primary);
    background: rgba(229, 9, 20, 0.15);
}

.main-content {
    flex: 1;
    min-width: 0;
}

.footer-section {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid var(--dark-border);
    margin-top: 30px;
}

.footer-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

.footer-row {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 150px;
	text-align: center;
}

.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-red-hover);
}

.footer-divider {
    height: 1px;
    background: var(--dark-border);
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
}

.footer-message {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--dark-border);
    z-index: 2001;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.show {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--dark-border);
    background: rgba(0, 0, 0, 0.5);
}

.mobile-menu-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(229, 9, 20, 0.3);
    border-color: rgba(229, 9, 20, 0.5);
}

.mobile-menu-content {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.mobile-nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-item.active {
    color: var(--primary-red);
    background: rgba(229, 9, 20, 0.15);
}

.mobile-category-section,
.mobile-friend-section {
    margin-top: 16px;
}

.mobile-category-title,
.mobile-friend-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    padding: 10px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--dark-border);
}

.mobile-category-list,
.mobile-friend-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-category-list li,
.mobile-friend-list li {
    margin-bottom: 4px;
}

.mobile-category-item,
.mobile-friend-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-category-item:hover,
.mobile-friend-item:hover {
    color: #ffffff;
    background: rgba(229, 9, 20, 0.15);
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 12px;
        height: 56px;
        gap: 10px;
    }
	.hero-tags {
	    display: grid;
		grid-template-columns: repeat(6, 1fr); /* 4列 */
	    flex-wrap: wrap;
	    gap: 8px;
	}
	
	.hero-tags-title{
		display: grid;
		grid-template-columns: repeat(4, 1fr); /* 4列 */
		flex-wrap: wrap;
		gap: 8px;
	}
	
	.hero-section{
		width: 100%;
	}
	.stream-header-bar {
		width: 100%;
	}

    .header-center {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-left {
        gap: 10px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .header-domain {
        padding: 4px 8px;
    }

    .domain-value {
        font-size: 10px;
        max-width: 120px;
    }

    .search-input {
        width: 120px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .search-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .hero-section {
        padding: 20px 12px;
    }

    .hero-title {
        font-size: 16px;
    }

    .hero-tag {
        padding: 5px 10px;
        font-size: 12px;
    }

    .content-wrapper {
        padding: 12px;
        flex-direction: column;
        gap: 12px;
		width: 100%;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar-section {
        padding: 12px;
    }

    .footer-row {
        flex-direction: column;
        gap: 24px;
    }

    .footer-content {
		width: 100%;
        padding: 0 12px 24px 12px;
    }
}

@media (max-width: 480px) {
    .header-content {
        height: 52px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-icon {
        font-size: 18px;
    }

    .header-domain {
        display: none;
    }

    .search-input {
        width: 80px;
    }

    .hero-title {
        font-size: 14px;
    }

    .sidebar-section {
        padding: 10px;
    }

    .sidebar-title {
        font-size: 13px;
    }

    .category-link,
    .friend-links a {
        padding: 6px 8px;
        font-size: 12px;
    }
}
