:root {
    --primary-color: #d4af37; /* Gold */
    --secondary-color: #f7e7ce; /* Light Gold */
    --bg-dark: #000000;
    --bg-card: #111111;
    --text-light: #ffffff;
    --text-dim: #888888;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --font-heading: "Microsoft YaHei", "Heiti SC", "WenQuanYi Micro Hei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-body: "Microsoft YaHei", "Heiti SC", "WenQuanYi Micro Hei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-body);
    background-color: #000;
    color: var(--text-light);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center; /* Center the mobile wrapper */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjMDAwMDAwIiAvPgo8cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMjIyMjIyIiAvPgo8L3N2Zz4=');
}

/* Mobile Wrapper */
.mobile-wrapper {
    width: 100%;
    max-width: 800px; /* Increased width for tablet/desktop */
    background-color: var(--bg-dark);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    border-left: 1px solid #222;
    border-right: 1px solid #222;
}

@media (max-width: 820px) {
    .mobile-wrapper {
        max-width: 100%;
        border: none;
        box-shadow: none;
    }
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: all var(--transition-speed);
}

/* Header */
.main-header {
    padding: 15px 20px;
    background: linear-gradient(to bottom, #1a1a1a, #000);
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.header-right i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Banner Section */
.banner-section {
    height: 260px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1563089145-599997674d42?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
}

.banner-content h2 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: clamp(0.75rem, 2.5vw, 1rem);
    color: #ccc;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Scrolling Announcement */
.notice-bar {
    background: #111;
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #333;
}

.notice-icon {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.1rem;
}

.notice-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

.marquee span {
    color: #ccc;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 500;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Portal Main */
.portal-main {
    padding: 25px 15px;
}

/* Site List */
.site-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.site-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid #333;
    padding: 0;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.site-item:hover {
    background: #1a1a1a;
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
}

.site-logo-wrapper {
    width: clamp(90px, 20vw, 110px);
    align-self: stretch;
    background: transparent;
    border-right: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: clamp(10px, 2vw, 15px);
    flex-shrink: 0;
}

.site-logo {
    width: clamp(80%, 12vw, 80%);
    height: clamp(80%, 12vw, 80%);
    object-fit: contain;
}

.site-info {
    flex: 1;
    margin-right: clamp(8px, 1.5vw, 12px);
    padding: 12px 0;
}

.site-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.site-info h3 {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
    color: var(--secondary-color);
    font-weight: 700;
}

.tag-vip, .tag-hot, .tag-new {
    font-size: clamp(0.6rem, 1.5vw, 0.75rem);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

.tag-vip { background: linear-gradient(45deg, #d4af37, #fcf6ba); color: #000; }
.tag-hot { background: #ff4d4d; color: #fff; }
.tag-new { background: #00f3ff; color: #000; }

.site-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.reputation-label {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: #bbb;
}

.stars {
    color: var(--primary-color);
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    display: flex;
    gap: 1px;
}

.site-review-row {
    margin-bottom: 4px;
}

.review-count {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: #888;
}

.site-desc {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: #999;
    line-height: 1.3;
}

/* Button & Breathing Effect */
.btn-entry {
    margin-right: clamp(10px, 2vw, 15px);
    padding: clamp(8px, 1.5vw, 10px) clamp(12px, 3vw, 20px);
    background: var(--gold-gradient);
    color: #000;
    border-radius: 25px;
    font-size: clamp(0.75rem, 2.5vw, 0.95rem);
    font-weight: 800;
    white-space: nowrap;
    border: none;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.breathing {
    animation: breathing 2s infinite ease-in-out;
}

@keyframes breathing {
    0% { transform: scale(1); box-shadow: 0 0 5px rgba(212, 175, 55, 0.4); }
    50% { transform: scale(1.15); box-shadow: 0 0 25px rgba(212, 175, 55, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 5px rgba(212, 175, 55, 0.4); }
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    margin-top: 20px;
    background: #050505;
}

.copyright {
    color: #444;
    font-size: 0.7rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}