/* 海角社区官方平台 - 专业设计风格 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* SEO隐藏标题 */
.seo-title {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 顶部通知栏 */
.notice-bar {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 8px 0;
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
}

.notice-icon {
    font-size: 16px;
}

.notice-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
}

/* 主导航 */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-shield {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 2px;
}

.brand-subtitle {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.trust-badges {
    display: flex;
    gap: 8px;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge.verified {
    background: #dcfce7;
    color: #166534;
}

.badge.secure {
    background: #dbeafe;
    color: #1e40af;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background: #f1f5f9;
    color: #1e40af;
}

.nav-icon {
    font-size: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 8px 12px;
    gap: 8px;
}

.search-input {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    width: 200px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-btn:hover {
    border-color: #1e40af;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #1e40af;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

/* 主要内容 */
.main-content {
    padding: 24px 0;
}

/* 平台状态面板 */
.status-panel {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 24px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #10b981;
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 14px;
    color: #10b981;
    font-weight: 500;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.status-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

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

.card-icon {
    font-size: 20px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.security-badges {
    display: flex;
    gap: 6px;
}

.security-badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.trend-indicator {
    font-size: 12px;
    font-weight: 600;
}

.trend-indicator.up {
    color: #10b981;
}

.rating-stars {
    color: #f59e0b;
    font-size: 16px;
}

/* 内容网格布局 */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

/* 内容展示 */
.content-showcase {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.section-actions {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.content-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.content-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.content-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 300px 1fr;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.content-card.featured .card-image {
    height: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quality-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.official-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.card-content {
    padding: 16px;
}

.content-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.content-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.5;
}

.content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.meta-item {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.content-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.action-btn.primary {
    background: #1e40af;
    color: white;
}

.action-btn.primary:hover {
    background: #1d4ed8;
}

.action-btn.secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.action-btn.secondary:hover {
    background: #e2e8f0;
}

/* 社群活动 */
.community-activities {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
}

.view-all {
    color: #1e40af;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.2s;
}

.activity-item:hover {
    border-left-color: #1e40af;
    background: #f1f5f9;
}

.activity-time {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.activity-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.activity-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.activity-text {
    font-size: 14px;
    line-height: 1.5;
}

.activity-stats {
    font-size: 12px;
    color: #64748b;
    align-self: center;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.widget-title {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

/* 平台优势 */
.advantage-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.advantage-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.advantage-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.advantage-content p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* 用户反馈 */
.feedback-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-item {
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.feedback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info .user-avatar {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.username {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
}

.rating {
    color: #f59e0b;
    font-size: 12px;
}

.feedback-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* 技术支持 */
.support-info {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.support-label {
    font-size: 13px;
    color: #64748b;
}

.support-value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.support-btn {
    margin: 0 20px 16px;
    padding: 10px;
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.support-btn:hover {
    background: #1d4ed8;
}

/* 官方链接 */
.official-links {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.official-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    color: #64748b;
    transition: all 0.2s;
}

.official-link:hover {
    background: #f1f5f9;
    color: #1e40af;
}

.link-icon {
    font-size: 16px;
}

.link-text {
    font-size: 14px;
    font-weight: 500;
}

/* 底部 */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    margin-top: 40px;
}

.footer-content {
    padding: 32px 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 24px;
}

.footer-brand h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-brand p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.link-column h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 16px;
}

.link-column a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.link-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-security {
    display: flex;
    gap: 16px;
}

.footer-security .security-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.copyright {
    font-size: 14px;
}

/* 动画 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .brand {
        justify-content: center;
    }
    
    .main-nav {
        order: 3;
        overflow-x: auto;
        padding: 0 0 8px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
    
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-card.featured {
        grid-column: span 1;
        display: block;
    }
    
    .content-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .activity-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}