/* 海角社区官网 - 全局样式表 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 容器 */
.hjsq-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hjsq-container-width {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.hjsq-header-main {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hjsq-nav-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.hjsq-logo-section {
    display: flex;
    flex-direction: column;
}

.hjsq-brand-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 2px;
}

.hjsq-home-link {
    color: #fff;
    transition: opacity 0.3s ease;
}

.hjsq-home-link:hover {
    opacity: 0.85;
}

.hjsq-brand-slogan {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.hjsq-navigation-menu {
    display: flex;
    gap: 30px;
}

.hjsq-nav-item {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.hjsq-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.hjsq-nav-item:hover::after,
.hjsq-nav-item.hjsq-active::after {
    width: 100%;
}

.hjsq-user-actions {
    display: flex;
    gap: 12px;
}

.hjsq-btn-login,
.hjsq-btn-register {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hjsq-btn-login {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.hjsq-btn-login:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hjsq-btn-register {
    background-color: #ff6b6b;
    color: #fff;
}

.hjsq-btn-register:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* 轮播横幅 */
.hjsq-banner-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hjsq-carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hjsq-slide-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hjsq-slide-active {
    opacity: 1;
}

.hjsq-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hjsq-banner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 80%;
}

.hjsq-banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hjsq-banner-subtitle {
    font-size: 22px;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hjsq-carousel-prev,
.hjsq-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 40px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.hjsq-carousel-prev:hover,
.hjsq-carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.hjsq-carousel-prev {
    left: 20px;
}

.hjsq-carousel-next {
    right: 20px;
}

/* 快速导航 */
.hjsq-quick-nav-section {
    padding: 60px 0;
    background-color: #fff;
}

.hjsq-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.hjsq-quick-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hjsq-quick-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hjsq-card-life {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hjsq-card-emotion {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.hjsq-card-travel {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.hjsq-card-food {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.hjsq-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
}

.hjsq-card-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.hjsq-card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* 章节标题 */
.hjsq-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.hjsq-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    padding-left: 20px;
}

.hjsq-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.hjsq-more-link {
    color: #667eea;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.hjsq-more-link:hover {
    color: #764ba2;
}

/* 热门话题 */
.hjsq-hot-topics-section {
    padding: 60px 0;
    background-color: #f5f7fa;
}

.hjsq-topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.hjsq-topic-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hjsq-topic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.hjsq-topic-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.hjsq-topic-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hjsq-topic-featured .hjsq-topic-thumb {
    height: 300px;
}

.hjsq-topic-content {
    padding: 25px;
}

.hjsq-topic-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: #667eea;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

.hjsq-topic-heading {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.hjsq-topic-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.hjsq-topic-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.hjsq-meta-author,
.hjsq-meta-views,
.hjsq-meta-replies {
    display: flex;
    align-items: center;
}

/* 社区精华 */
.hjsq-essence-section {
    padding: 60px 0;
    background-color: #fff;
}

.hjsq-essence-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.hjsq-essence-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hjsq-essence-post {
    display: flex;
    gap: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.hjsq-essence-post:hover {
    background-color: #e9ecef;
}

.hjsq-post-highlight {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.hjsq-post-image {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.hjsq-post-body {
    flex: 1;
}

.hjsq-post-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.hjsq-post-summary {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.hjsq-post-footer {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #888;
}

.hjsq-post-author {
    font-weight: 500;
    color: #667eea;
}

.hjsq-post-likes {
    color: #ff6b6b;
}

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

.hjsq-sidebar-widget {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
}

.hjsq-widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
}

.hjsq-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hjsq-stat-item {
    text-align: center;
}

.hjsq-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.hjsq-stat-label {
    display: block;
    font-size: 13px;
    color: #888;
}

.hjsq-ranking-list {
    list-style: none;
}

.hjsq-ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hjsq-ranking-item:last-child {
    border-bottom: none;
}

.hjsq-rank-badge {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.hjsq-rank-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #fff;
}

.hjsq-rank-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #fff;
}

.hjsq-rank-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #d4a574 100%);
    color: #fff;
}

.hjsq-rank-user {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.hjsq-rank-score {
    font-size: 13px;
    color: #999;
}

/* 最新动态 */
.hjsq-updates-section {
    padding: 60px 0;
    background-color: #f5f7fa;
}

.hjsq-updates-stream {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hjsq-update-item {
    display: flex;
    gap: 15px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hjsq-update-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.hjsq-update-content {
    flex: 1;
}

.hjsq-update-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 8px;
}

.hjsq-update-text strong {
    color: #667eea;
    font-weight: 600;
}

.hjsq-update-text a {
    color: #2c3e50;
    text-decoration: underline;
}

.hjsq-update-text a:hover {
    color: #667eea;
}

.hjsq-update-time {
    font-size: 12px;
    color: #999;
}

/* 页脚 */
.hjsq-footer-main {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: auto;
}

.hjsq-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.hjsq-footer-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.hjsq-footer-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.hjsq-footer-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 15px;
}

.hjsq-footer-list {
    list-style: none;
}

.hjsq-footer-list li {
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.hjsq-footer-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.hjsq-footer-link:hover {
    color: #fff;
}

.hjsq-social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hjsq-social-btn {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s ease;
}

.hjsq-social-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hjsq-footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hjsq-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.hjsq-footer-links {
    display: flex;
    gap: 20px;
}

.hjsq-policy-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.hjsq-policy-link:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hjsq-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hjsq-topics-grid {
        grid-template-columns: 1fr;
    }

    .hjsq-topic-featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hjsq-essence-layout {
        grid-template-columns: 1fr;
    }

    .hjsq-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hjsq-navigation-menu {
        display: none;
    }

    .hjsq-banner-title {
        font-size: 32px;
    }

    .hjsq-banner-subtitle {
        font-size: 16px;
    }

    .hjsq-quick-grid {
        grid-template-columns: 1fr;
    }

    .hjsq-essence-post {
        flex-direction: column;
    }

    .hjsq-post-image {
        width: 100%;
        height: 200px;
    }

    .hjsq-footer-grid {
        grid-template-columns: 1fr;
    }

    .hjsq-footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}