559 lines
10 KiB
CSS
559 lines
10 KiB
CSS
/* 璧勬簮涓績鐗规畩鏍峰紡 */
|
|
.resources-wrapper {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 40px 20px;
|
|
display: grid;
|
|
grid-template-columns: 250px 1fr;
|
|
gap: 40px;
|
|
}
|
|
|
|
.resource-sidebar {
|
|
position: sticky;
|
|
top: 90px;
|
|
height: fit-content;
|
|
}
|
|
|
|
.filter-section {
|
|
background: var(--light-bg);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
border-left: 4px solid var(--primary-purple);
|
|
}
|
|
|
|
.filter-section h3 {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 20px;
|
|
color: var(--primary-purple);
|
|
}
|
|
|
|
.filter-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.filter-group label {
|
|
display: block;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
margin-bottom: 8px;
|
|
color: var(--dark-text);
|
|
}
|
|
|
|
.filter-group select,
|
|
.filter-group input {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 5px;
|
|
font-size: 0.85rem;
|
|
background: white;
|
|
cursor: pointer;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
.filter-group select:hover,
|
|
.filter-group select:focus,
|
|
.filter-group input:hover,
|
|
.filter-group input:focus {
|
|
border-color: var(--primary-purple);
|
|
outline: none;
|
|
}
|
|
|
|
.btn-search {
|
|
width: 100%;
|
|
padding: 10px;
|
|
background: var(--primary-purple);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.btn-search:hover {
|
|
background: var(--primary-blue);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.reset-link {
|
|
display: block;
|
|
margin: 10px auto 0;
|
|
background: none;
|
|
border: 0;
|
|
color: var(--primary-purple);
|
|
cursor: pointer;
|
|
font-size: 0.86rem;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.empty-result {
|
|
display: none;
|
|
color: var(--light-text);
|
|
background: var(--light-bg);
|
|
border-left: 4px solid var(--primary-purple);
|
|
padding: 16px;
|
|
border-radius: 8px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* 璧勬簮鍐呭 */
|
|
.resource-content {
|
|
padding: 20px;
|
|
}
|
|
|
|
.resource-section {
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
.resource-section h2 {
|
|
font-size: 2rem;
|
|
margin-bottom: 30px;
|
|
color: var(--primary-blue);
|
|
border-bottom: 3px solid var(--accent-color);
|
|
padding-bottom: 15px;
|
|
}
|
|
|
|
/* 璧勬簮鍗$墖缃戞牸 */
|
|
.resource-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 25px;
|
|
}
|
|
|
|
.resource-card {
|
|
background: white;
|
|
border-radius: 10px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
|
|
overflow: hidden;
|
|
transition: all 0.3s;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.resource-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
.card-header {
|
|
padding: 20px;
|
|
background: linear-gradient(135deg, rgba(30, 60, 114, 0.05) 0%, rgba(106, 44, 145, 0.05) 100%);
|
|
border-bottom: 2px solid #f0f0f0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
}
|
|
|
|
.card-header h4 {
|
|
color: var(--primary-blue);
|
|
font-size: 1.05rem;
|
|
flex: 1;
|
|
margin: 0;
|
|
}
|
|
|
|
.year-badge {
|
|
background: var(--primary-purple);
|
|
color: white;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 0.8rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.card-meta {
|
|
padding: 15px 20px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.journal {
|
|
color: var(--light-text);
|
|
flex: 1;
|
|
}
|
|
|
|
.if-badge {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
padding: 3px 8px;
|
|
border-radius: 3px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.card-desc {
|
|
padding: 15px 20px;
|
|
flex: 1;
|
|
color: var(--light-text);
|
|
font-size: 0.9rem;
|
|
line-height: 1.6;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.card-tags {
|
|
padding: 15px 20px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.tag {
|
|
background: var(--light-bg);
|
|
color: var(--primary-blue);
|
|
padding: 4px 10px;
|
|
border-radius: 15px;
|
|
font-size: 0.75rem;
|
|
border: 1px solid var(--primary-blue);
|
|
}
|
|
|
|
.card-link {
|
|
padding: 15px 20px;
|
|
color: var(--accent-color);
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.card-link:hover {
|
|
color: #00a8cc;
|
|
background: var(--light-bg);
|
|
}
|
|
|
|
/* 瑙嗛缃戞牸 */
|
|
.video-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 30px;
|
|
}
|
|
|
|
.video-card {
|
|
background: white;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.video-card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
.video-placeholder {
|
|
position: relative;
|
|
width: 100%;
|
|
padding-bottom: 56.25%; /* 16:9 aspect ratio */
|
|
background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.video-placeholder::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0);
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.video-card:hover .video-placeholder::after {
|
|
background: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.play-icon {
|
|
position: relative;
|
|
z-index: 2;
|
|
font-size: 3rem;
|
|
color: white;
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.video-card:hover .play-icon {
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
.video-card h4 {
|
|
padding: 15px;
|
|
margin: 0;
|
|
color: var(--primary-blue);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.video-card p {
|
|
padding: 0 15px;
|
|
margin: 0 0 10px 0;
|
|
color: var(--light-text);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.video-duration {
|
|
padding: 0 15px 15px 15px !important;
|
|
font-size: 0.85rem !important;
|
|
color: var(--accent-color) !important;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* 鍝嶅簲寮?*/
|
|
@media (max-width: 768px) {
|
|
.resources-wrapper {
|
|
grid-template-columns: 1fr;
|
|
gap: 30px;
|
|
}
|
|
|
|
.resource-sidebar {
|
|
position: static;
|
|
}
|
|
|
|
.resource-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.video-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
}
|
|
|
|
.card-header {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.card-meta {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.resource-grid,
|
|
.video-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.card-header h4 {
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.card-desc {
|
|
font-size: 0.85rem;
|
|
}
|
|
}
|
|
|
|
.news-feature-card {
|
|
background: #fff;
|
|
border: 1px solid #e5ebf3;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
box-shadow: 0 8px 24px rgba(16, 41, 79, 0.08);
|
|
}
|
|
|
|
.news-feature-hero {
|
|
display: grid;
|
|
grid-template-columns: minmax(280px, 0.92fr) 1.08fr;
|
|
gap: 28px;
|
|
align-items: center;
|
|
padding: 24px;
|
|
background: #f8fafc;
|
|
border-bottom: 1px solid #e5ebf3;
|
|
}
|
|
|
|
.news-feature-hero img,
|
|
.news-inline-figure img,
|
|
.news-image-grid img {
|
|
width: 100%;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
object-fit: cover;
|
|
cursor: zoom-in;
|
|
}
|
|
|
|
.news-feature-hero img {
|
|
aspect-ratio: 16 / 10;
|
|
}
|
|
|
|
.news-date {
|
|
display: inline-block;
|
|
margin-bottom: 10px;
|
|
color: var(--accent-color);
|
|
font-weight: 700;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.news-feature-hero h3 {
|
|
color: var(--primary-blue);
|
|
font-size: 1.55rem;
|
|
line-height: 1.35;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.news-feature-hero p,
|
|
.news-prose p,
|
|
.news-prose li {
|
|
color: #34405a;
|
|
line-height: 1.85;
|
|
}
|
|
|
|
.news-prose {
|
|
padding: 24px;
|
|
}
|
|
|
|
.news-prose h4 {
|
|
color: var(--primary-blue);
|
|
margin: 10px 0 12px;
|
|
font-size: 1.08rem;
|
|
}
|
|
|
|
.news-prose ul {
|
|
padding-left: 20px;
|
|
margin: 12px 0 0;
|
|
}
|
|
|
|
.news-inline-figure {
|
|
margin: 20px 0;
|
|
padding: 12px;
|
|
border: 1px solid #e5ebf3;
|
|
border-radius: 8px;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.news-inline-figure img {
|
|
max-height: 360px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.news-inline-figure figcaption,
|
|
.news-image-grid figcaption {
|
|
margin-top: 8px;
|
|
color: #64748b;
|
|
font-size: 0.84rem;
|
|
line-height: 1.5;
|
|
text-align: center;
|
|
}
|
|
|
|
.news-image-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 18px;
|
|
padding: 0 24px 10px;
|
|
}
|
|
|
|
.news-image-grid figure {
|
|
margin: 0;
|
|
padding: 12px;
|
|
border: 1px solid #e5ebf3;
|
|
border-radius: 8px;
|
|
background: #fff;
|
|
}
|
|
|
|
.news-image-grid img {
|
|
height: 240px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.doi-links {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.doi-links a {
|
|
color: #fff;
|
|
background: var(--primary-blue);
|
|
text-decoration: none;
|
|
border-radius: 5px;
|
|
padding: 8px 12px;
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.video-card video {
|
|
display: block;
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
background: #0f172a;
|
|
}
|
|
|
|
.video-card-wide {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.news-feature-hero,
|
|
.news-image-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.video-card-wide {
|
|
grid-column: span 1;
|
|
}
|
|
}
|
|
|
|
.resource-tabs {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin: 0 0 28px;
|
|
border-bottom: 2px solid #e5ebf3;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.resource-tab {
|
|
background: none;
|
|
border: none;
|
|
padding: 12px 20px;
|
|
color: #5f6b7a;
|
|
font-size: 0.95rem;
|
|
cursor: pointer;
|
|
border-bottom: 3px solid transparent;
|
|
transition: color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.resource-tab:hover,
|
|
.resource-tab.active {
|
|
color: var(--primary-purple);
|
|
border-bottom-color: var(--primary-purple);
|
|
}
|
|
|
|
.resource-section {
|
|
display: none;
|
|
}
|
|
|
|
.resource-section.active-section {
|
|
display: block;
|
|
}
|
|
|
|
.resource-card.is-filtered-out {
|
|
display: none;
|
|
}
|
|
|
|
.resource-card-thumb {
|
|
width: 100%;
|
|
height: 180px;
|
|
object-fit: contain;
|
|
background: #f8fafc;
|
|
border-bottom: 1px solid #e5ebf3;
|
|
cursor: zoom-in;
|
|
}
|
|
|
|
.video-card-grid .resource-card {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.video-resource-card video {
|
|
display: block;
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
background: #0f172a;
|
|
}
|