/* 海角社区入口 - 全站样式表 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --hjsq-primary: #ff6b9d;
    --hjsq-secondary: #4a90e2;
    --hjsq-accent: #ffd700;
    --hjsq-dark: #1a1a2e;
    --hjsq-light: #f8f9fa;
    --hjsq-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --hjsq-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--hjsq-light);
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.hjsq-loaded {
    opacity: 1;
}

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

/* 头部导航 */
.hjsq-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.hjsq-header.hjsq-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hjsq-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.hjsq-logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--hjsq-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.hjsq-logo:hover {
    transform: scale(1.05);
}

.hjsq-nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.hjsq-nav-link {
    color: var(--hjsq-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.hjsq-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hjsq-primary);
    transition: width 0.3s ease;
}

.hjsq-nav-link:hover {
    color: var(--hjsq-primary);
}

.hjsq-nav-link:hover::after {
    width: 100%;
}

/* 英雄区 */
.hjsq-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hjsq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    animation: hjsq-wave 15s infinite linear;
}

@keyframes hjsq-wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hjsq-hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

.hjsq-hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: hjsq-fadeInUp 1s ease;
}

.hjsq-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: hjsq-fadeInUp 1s ease 0.2s both;
}

.hjsq-hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    animation: hjsq-fadeInUp 1s ease 0.4s both;
}

@keyframes hjsq-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hjsq-cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--hjsq-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: hjsq-fadeInUp 1s ease 0.6s both;
}

.hjsq-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* 章节通用样式 */
.hjsq-section {
    padding: 5rem 0;
}

.hjsq-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--hjsq-dark);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.hjsq-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--hjsq-gradient);
    border-radius: 2px;
}

.hjsq-section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* 卡片网格 */
.hjsq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hjsq-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--hjsq-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hjsq-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.hjsq-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hjsq-card:hover .hjsq-card-image {
    transform: scale(1.05);
}

.hjsq-card-content {
    padding: 1.5rem;
}

.hjsq-card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--hjsq-dark);
}

.hjsq-card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.hjsq-card-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--hjsq-gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* 特色区域 */
.hjsq-features {
    background: white;
}

.hjsq-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.hjsq-feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.hjsq-feature-item:hover {
    background: var(--hjsq-light);
    transform: translateY(-5px);
}

.hjsq-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--hjsq-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.hjsq-feature-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: var(--hjsq-dark);
}

.hjsq-feature-text {
    color: #666;
    line-height: 1.7;
}

/* 画廊区 */
.hjsq-gallery {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.hjsq-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.hjsq-gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--hjsq-shadow);
    aspect-ratio: 3/4;
}

.hjsq-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hjsq-gallery-item:hover .hjsq-gallery-image {
    transform: scale(1.1);
}

.hjsq-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hjsq-gallery-item:hover .hjsq-gallery-overlay {
    opacity: 1;
}

.hjsq-gallery-caption {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 页脚 */
.hjsq-footer {
    background: var(--hjsq-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.hjsq-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.hjsq-footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--hjsq-primary);
}

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

.hjsq-footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.hjsq-footer-link:hover {
    color: white;
    padding-left: 5px;
}

.hjsq-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hjsq-nav-menu {
        gap: 1rem;
    }

    .hjsq-hero-title {
        font-size: 2.5rem;
    }

    .hjsq-hero-subtitle {
        font-size: 1.2rem;
    }

    .hjsq-section-title {
        font-size: 2rem;
    }

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