/* beats365 Custom Styles - Black Gold Theme */
:root {
    --gold-primary: #d4af37;
    --gold-secondary: #f1c40f;
    --black-bg: #0a0a0a;
    --black-card: #1a1a1a;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--black-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    display: none; /* Hidden by default for JS routing */
}

section.active {
    display: block;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 15px 0;
    transition: 0.3s;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://tse-mm.bing.com/th?q=高端音响 黑色背景') center/cover;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: #000;
}

.btn-gold:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
}

/* Cards & Grids */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
    background: var(--black-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: 0.3s;
}

.card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 200px;
    object-cover: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 50px;
    text-align: center;
    color: var(--gold-primary);
}

/* Products Page Specifics */
.filter-bar {
    background: var(--black-card);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

select, input {
    background: #000;
    color: #fff;
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 8px;
    outline: none;
}

select:focus, input:focus {
    border-color: var(--gold-primary);
}

/* Footer */
footer {
    background: #000;
    padding: 80px 0 40px;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--gold-primary);
    margin-bottom: 25px;
}

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

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

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
}

/* Dynamic Content Styles */
.news-item {
    border-left: 4px solid var(--gold-primary);
    padding-left: 20px;
    margin-bottom: 30px;
}

.dynamic-list {
    height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.dynamic-item {
    padding: 15px;
    border-bottom: 1px solid #222;
    font-size: 14px;
}

.dynamic-item span {
    color: var(--gold-primary);
    font-size: 12px;
    display: block;
    margin-top: 5px;
}
