/* PinkNav - 粉黑风格样式 */

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --border-color: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
    --text-muted: #666666;
    --accent: #FF69B4;
    --accent-hover: #ff8dc7;
    --accent-glow: rgba(255, 105, 180, 0.4);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* 容器 */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 头部 */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow),
                 0 0 20px var(--accent-glow);
}

.logo:visited,
.logo:active,
.logo:focus {
    color: var(--accent);
    text-decoration: none;
}

/* 搜索框 */
.search-box {
    position: relative;
    margin-top: 16px;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px 10px 40px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--accent);
}

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

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

/* 分类标签 */
.categories {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.category-btn {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.category-btn.active {
    background: var(--accent);
    color: #000;
    font-weight: 500;
}

/* 主内容区 */
.main {
    padding: 24px 0 80px;
}

/* 分类标题 */
.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.category-title .line {
    width: 4px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
}

.category-title h2 {
    font-size: 16px;
    font-weight: 600;
}

.category-title .count {
    font-size: 12px;
    color: var(--text-muted);
}

/* 链接卡片 */
.link-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.link-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 105, 180, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-icon img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.link-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-title h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-title .external {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.link-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 48px 16px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent);
    color: #000;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.empty-state .btn:hover {
    background: var(--accent-hover);
}

/* 设置按钮 */
.settings-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

/* 响应式 */
@media (max-width: 640px) {
    .container {
        padding: 0 12px;
    }

    .link-card {
        padding: 12px;
    }

    .link-icon {
        width: 36px;
        height: 36px;
    }
}
