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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e0e0e0;
    line-height: 1.6;
}

.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}
.landing h1 {
    font-size: 3rem;
    color: #e94560;
    letter-spacing: 4px;
    margin-bottom: 20px;
}
.landing .subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 40px;
}
.landing .info {
    color: #888;
    font-size: 0.9rem;
}
.landing .info code {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Consolas, monospace;
}

.auth-container {
    max-width: 360px;
    margin: 80px auto;
    padding: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}
.auth-container h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #e94560;
}
.auth-container input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 1rem;
}
.auth-container input:focus {
    outline: none;
    border-color: #e94560;
}
.auth-container button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #e94560;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.auth-container button:hover {
    opacity: 0.9;
}
.error {
    background: rgba(233,69,96,0.2);
    border: 1px solid #e94560;
    color: #ff8a9b;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.portal {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}
.portal header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.portal header a {
    color: #e94560;
    text-decoration: none;
}
.portal header a:hover {
    text-decoration: underline;
}
.portal .user {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}
.categories .card {
    display: block;
    padding: 32px 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.categories .card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}
.categories .icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.categories h3 {
    color: #e94560;
    margin-bottom: 8px;
}
.categories p {
    color: #888;
    font-size: 0.9rem;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.list-item {
    display: block;
    padding: 16px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.list-item:hover {
    background: rgba(255,255,255,0.1);
}
.list-item h4 {
    color: #e94560;
    margin-bottom: 4px;
}
.list-item .meta {
    color: #888;
    font-size: 0.85rem;
}

.reader {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}
.reader header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.reader header a {
    color: #e94560;
    text-decoration: none;
    font-size: 0.9rem;
}
.reader .content {
    white-space: pre-wrap;
    line-height: 2;
    font-size: 1.1rem;
    color: #d0d0d0;
    background: rgba(0,0,0,0.2);
    padding: 24px;
    border-radius: 8px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.thumb {
    text-align: center;
}
.thumb img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}
.thumb span {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #aaa;
}

.empty {
    color: #888;
    text-align: center;
    padding: 60px 20px;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
