

/* --- START OF FILE que-share.css --- */

.share-hero {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    padding: 3rem 2rem;
    text-align: center;
    color: #e0e0e0;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.share-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(74, 144, 226, 0.7);
}

.share-hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.share-hero .disclaimer {
    font-size: 0.95rem;
    color: #f3d47d; /* 警告色 */
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: rgba(255, 193, 7, 0.15); /* 警告背景色 */
    border-radius: 8px;
    max-width: 700px;
    margin: 1.5rem auto 0 auto;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.project-list-section, .contribution-section {
    max-width: 1200px;
    margin: 0 auto 3rem auto; /* 底部间距 */
    padding: 0 1rem;
    color: var(--text-color);
}

.project-list-section h2, .contribution-section h2 {
    font-size: 2.2rem;
    color: #fff;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.project-list-section h2::after, .contribution-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, transparent, #4a90e2, transparent);
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 响应式网格布局 */
    gap: 2rem;
}

.project-card {
    background: rgba(31, 41, 55, 0.8); /* 暗色主题的卡片背景 */
    backdrop-filter: blur(5px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* --- START OF FILE que-share.css --- */

/* 继承 styles.css 的基础样式，专注于 que-share.html 的布局和卡片 */

/* === 1. 页面主体布局调整 === */
.page-main-content {
    /* 确保主内容居中且有最大宽度 */
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* === 3. 项目列表网格布局与卡片 === */
.project-list-section h2 {
    font-size: 1.8rem;
    color: var(--text-color, #e5e7eb);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.projects-grid {
    display: grid;
    /* 默认三列，在大屏幕上更清晰 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem;
}

.project-card {
    background: rgba(0, 0, 0, 0.4); /* 暗色半透明卡片背景 */
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden; /* 确保图片圆角 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px); /* 可爱的小抬升 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.project-thumbnail {
    width: 100%;
    height: 200px; /* 固定的封面高度 */
    object-fit: cover; /* 保持图片比例 */
}

.project-details {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    color: var(--primary-color, #60a5fa);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--text-color, #e5e7eb);
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 3em; /* 保证描述行数一致，避免卡片高度不一 */
}

/* === 4. Meta 信息与标签样式 === */
.project-meta {
    margin: 1rem 0;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.project-meta span {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.project-meta i {
    margin-right: 0.4rem;
    color: var(--primary-color, #60a5fa);
}

/* === 5. 链接按钮样式 === */
.project-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap; /* 适配小屏幕 */
    gap: 0.8rem;
}

.project-links .btn {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.1s ease;
    white-space: nowrap; /* 不换行 */
}

.project-links .btn i {
    margin-right: 0.5rem;
}

.btn-github {
    background-color: #24292e; /* GitHub 黑色 */
    color: #fff;
}

.btn-github:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.btn-demo {
    background-color: var(--primary-color, #60a5fa);
    color: #fff;
}

.btn-demo:hover {
    background-color: #4c87e1;
    transform: translateY(-2px);
}

.btn-download {
    background-color: #38a169; /* 绿色下载按钮 */
    color: #fff;
}

.btn-download:hover {
    background-color: #2f855a;
    transform: translateY(-2px);
}

/* 许可证 */
.project-license {
    font-size: 0.85rem;
    color: #ffffff; /* 暖黄色 */
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.project-license i {
    color: #ffffff;
    margin-right: 0.4rem;
}

/* === 6. 贡献与联系区 === */
.contribution-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(3px);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
}

.contribution-section h2 {
    color: var(--primary-color, #60a5fa);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contribution-section ul {
    list-style: none;
    padding-left: 0;
}

.contribution-section li {
    font-size: 1.1rem;
    color: var(--text-color, #e5e7eb);
    margin-bottom: 0.8rem;
}

.contribution-section i {
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
}

/* === 媒体查询：适配手机屏幕 === */
@media (max-width: 768px) {
    .share-hero {
        padding: 2rem 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr; /* 手机上只显示一列 */
    }

    .project-card {
        /* 手机上卡片可以设置为列布局，让图片在上 */
        flex-direction: column;
        text-align: center;
    }

    .project-links {
        justify-content: center; /* 按钮居中 */
    }
}
/* --- END OF FILE que-share.css --- */