/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 24px;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    max-width: 500px;
    margin: 0 auto;
}

.header-icon {
    font-size: 36px;
    color: #667eea;
    margin-bottom: 12px;
    display: block;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 400;
}

/* 主内容 */
.main-content {
    flex: 1;
}

/* 网站分组 */
.site-group {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.group-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
    margin-right: 8px;
}

/* 网站列表 */
.sites-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 网站项目 */
.site-item {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.site-item.primary::before {
    background: linear-gradient(90deg, #fbbf24, #f97316);
}

.site-item.backup::before {
    background: linear-gradient(90deg, #10b981, #06b6d4);
}

.site-item.other::before {
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.site-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.site-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.site-icon {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.site-item.primary .site-icon {
    color: #f97316;
}

.site-item.backup .site-icon {
    color: #10b981;
}

.site-item.other .site-icon {
    color: #8b5cf6;
}

.site-details {
    flex: 1;
}

.site-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    margin-bottom: 2px;
}

.site-desc {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
    opacity: 0.9;
}

/* 主站特殊样式 */
.site-item.primary .site-name {
    color: #dc2626;
    font-weight: 700;
    font-size: 1rem;
}

.site-item.primary .site-desc {
    color: #dc2626;
    opacity: 0.9;
    font-weight: 500;
}

.site-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    white-space: nowrap;
}

.site-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.link-text {
    margin-right: 4px;
}

.link-icon {
    font-size: 0.65rem;
    opacity: 0.7;
}

/* 信息区域 */
.info-section {
    margin-bottom: 24px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e293b;
    display: flex;
    align-items: center;
}

.info-card h4 i {
    margin-right: 6px;
    color: #667eea;
    font-size: 0.9rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 4px 0;
    color: #475569;
    position: relative;
    padding-left: 14px;
    font-size: 0.85rem;
}

.info-card li::before {
    content: '•';
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.info-card strong {
    color: #1e293b;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-top: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
        max-width: 100%;
    }
    
    .header {
        padding: 20px 16px;
        margin-bottom: 20px;
    }
    
    .header-icon {
        font-size: 30px;
        margin-bottom: 10px;
    }
    
    .title {
        font-size: 1.7rem;
        margin-bottom: 6px;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .site-group {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    .group-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .sites-list {
        gap: 5px;
    }
    
    .site-item {
        padding: 12px 16px;
    }
    
    .site-left {
        gap: 10px;
    }
    
    .site-name {
        font-size: 0.85rem;
    }
    
    .site-link {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .info-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .site-group {
        padding: 14px;
    }
    
    .site-item {
        padding: 10px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .site-left {
        justify-content: flex-start;
    }
    
    .site-link {
        align-self: stretch;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .header-icon {
        font-size: 26px;
    }
    
    .site-icon {
        font-size: 14px;
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    }
    
    .header,
    .site-group,
    .info-card {
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(71, 85, 105, 0.3);
    }
    
    .title {
        color: #f1f5f9;
    }
    
    .subtitle {
        color: #94a3b8;
    }
    
    .group-title {
        color: #f1f5f9;
        border-bottom-color: #475569;
    }
    
    .site-item {
        background: rgba(51, 65, 85, 0.6);
        border-color: rgba(71, 85, 105, 0.4);
    }
    
    .site-item:hover {
        background: rgba(71, 85, 105, 0.8);
    }
    
    .site-name {
        color: #f1f5f9;
    }
    
    .site-desc {
        color: #94a3b8;
    }
    
    /* 深色模式下主站样式 */
    .site-item.primary .site-name {
        color: #ef4444;
    }
    
    .site-item.primary .site-desc {
        color: #ef4444;
    }
    
    .site-link {
        background: linear-gradient(135deg, #374151, #4b5563);
        color: #e5e7eb;
        border-color: #6b7280;
    }
    
    .info-card h4 {
        color: #f1f5f9;
    }
    
    .info-card li {
        color: #cbd5e1;
    }
    
    .info-card strong {
        color: #f1f5f9;
    }
} 