/* 海角社区 - 全局样式 */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 头部导航 */
.hjsq-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.hjsq-header.hjsq-scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.hjsq-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hjsq-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: opacity 0.3s;
}

.hjsq-logo a:hover {
    opacity: 0.9;
}

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

.hjsq-nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.hjsq-nav-menu a:hover {
    opacity: 0.8;
}

/* 移动端菜单 */
.hjsq-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hjsq-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s;
}

/* 主要内容区域 */
.hjsq-main {
    margin-top: 80px;
}

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

.hjsq-section {
    padding: 4rem 0;
}

.hjsq-section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
    text-align: center;
}

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

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

.hjsq-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hjsq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

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

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

.hjsq-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.hjsq-card-text {
    color: #718096;
    line-height: 1.8;
}

/* 按钮 */
.hjsq-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.hjsq-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 表单 */
.hjsq-form {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hjsq-form-group {
    margin-bottom: 1.5rem;
}

.hjsq-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 500;
}

.hjsq-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.hjsq-form-input:focus {
    outline: none;
    border-color: #667eea;
}

.hjsq-form-input.hjsq-error {
    border-color: #f56565;
}

/* 页脚 */
.hjsq-footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.hjsq-footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.hjsq-footer-section ul li {
    margin-bottom: 0.5rem;
}

.hjsq-footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.hjsq-footer-section a:hover {
    color: white;
}

.hjsq-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

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

    .hjsq-menu-toggle {
        display: flex;
    }

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

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

    .hjsq-container {
        padding: 0 1rem;
    }
}

/* 动画效果 */
@keyframes hjsq-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hjsq-fade-in {
    animation: hjsq-fadeIn 0.6s ease-out;
}
