604 lines
11 KiB
CSS
604 lines
11 KiB
CSS
.news-header {
|
|
width: 100%;
|
|
height: 250px;
|
|
background-color: #333;
|
|
background-image: linear-gradient(rgba(0,0,0,0.2), rgba(30,30,30,1));
|
|
display: flex;
|
|
align-items: flex-end;
|
|
padding: 30px;
|
|
border: 1px solid var(--border);
|
|
border-bottom: none;
|
|
position: relative;
|
|
|
|
.news-header-content {
|
|
|
|
position: relative;
|
|
z-index: 2;
|
|
|
|
.news-title {
|
|
font-size: 2.5rem;
|
|
font-weight: 300;
|
|
color: var(--text);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.news-meta {
|
|
color: var(--text2);
|
|
display: flex;
|
|
gap: 15px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.news-content {
|
|
|
|
background-color: var(--bg2);
|
|
border: 1px solid var(--border);
|
|
padding: 40px;
|
|
line-height: 1.7;
|
|
color: var(--text);
|
|
font-size: 1.05rem;
|
|
|
|
p {
|
|
margin-bottom: 20px;
|
|
}
|
|
}
|
|
|
|
#news-container {
|
|
background-color: var(--bg2);
|
|
border: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.news-header {
|
|
width: 100%;
|
|
height: 300px;
|
|
background-size: cover;
|
|
background-position: center;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
padding: 40px 30px;
|
|
border-bottom: 1px solid var(--border);
|
|
position: relative;
|
|
}
|
|
|
|
.news-header-content {
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.news-header .news-title {
|
|
font-size: 2.5rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
margin-bottom: 12px;
|
|
text-shadow: 0 2px 4px rgba(0,0,0,0.6);
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
word-break: break-word;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.news-header .news-title {
|
|
font-size: 1.8rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.news-header .news-title {
|
|
font-size: 1.4rem;
|
|
}
|
|
}
|
|
|
|
.news-header .news-meta {
|
|
color: var(--text2);
|
|
display: flex;
|
|
gap: 20px;
|
|
font-size: 0.9rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.news-header .meta-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background-color: rgba(0, 0, 0, 0.4);
|
|
padding: 4px 10px;
|
|
border-radius: 2px;
|
|
border: 1px solid rgba(255,255,255,0.05);
|
|
}
|
|
|
|
.news-layout {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 30px;
|
|
padding: 30px;
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.news-layout {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
.news-main-content {
|
|
flex-grow: 1;
|
|
flex-basis: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.news-body-text {
|
|
line-height: 1.75;
|
|
color: var(--text);
|
|
font-size: 1.05rem;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.news-body-text p {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.news-sidebar {
|
|
width: 320px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 25px;
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.news-sidebar {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.sidebar-block {
|
|
background-color: var(--bg);
|
|
border: 1px solid var(--border);
|
|
padding: 20px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.sidebar-title {
|
|
font-size: 1rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--text);
|
|
margin-bottom: 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.btn-sidebar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 10px 15px;
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
border-radius: 2px;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
text-align: center;
|
|
}
|
|
|
|
.btn-orange {
|
|
background-color: var(--rhpz-orange);
|
|
color: #fff;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.btn-orange:hover {
|
|
background-color: var(--rhpz-orange-hover);
|
|
}
|
|
|
|
.related-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.related-card-cover {
|
|
width: 100%;
|
|
height: 150px;
|
|
background-color: var(--bg2);
|
|
border: 1px solid var(--border);
|
|
overflow: hidden;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.related-card-cover img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
padding: 5px;
|
|
}
|
|
|
|
.related-card-info h4 {
|
|
font-size: 1.1rem;
|
|
color: var(--text);
|
|
margin-bottom: 10px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.news-sidebar .video-thumbnail-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 16/9;
|
|
background-color: #000;
|
|
border: 1px solid var(--border);
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.news-sidebar .video-thumbnail-wrapper img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
opacity: 0.7;
|
|
transition: transform 0.3s ease, opacity 0.3s ease;
|
|
}
|
|
|
|
.news-sidebar .video-thumbnail-wrapper:hover img {
|
|
transform: scale(1.03);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.news-sidebar .play-trigger {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 50px;
|
|
height: 50px;
|
|
background-color: rgba(0, 0, 0, 0.75);
|
|
border: 2px solid #fff;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #fff;
|
|
transition: background-color 0.2s, transform 0.2s ease-out;
|
|
}
|
|
|
|
.news-sidebar .video-thumbnail-wrapper:hover .play-trigger {
|
|
background-color: var(--rhpz-orange);
|
|
transform: translate(-50%, -50%) scale(1.1);
|
|
}
|
|
|
|
.news-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-top: 15px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.news-header .news-actions .btn {
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
border-color: rgba(255, 255, 255, 0.15);
|
|
backdrop-filter: blur(4px);
|
|
color: var(--text);
|
|
transition: background-color 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.news-header .news-actions .btn:hover {
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
border-color: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.news-header .news-actions .btn.success {
|
|
background-color: rgba(56, 142, 60, 0.6);
|
|
border-color: rgba(129, 199, 132, 0.4);
|
|
color: #81c784;
|
|
}
|
|
|
|
.news-header .news-actions .btn.danger {
|
|
background-color: rgba(183, 28, 28, 0.5);
|
|
border-color: rgba(229, 115, 115, 0.4);
|
|
color: #e57373;
|
|
}
|
|
|
|
.news-hero {
|
|
display: block;
|
|
position: relative;
|
|
width: 100%;
|
|
height: 360px;
|
|
margin-bottom: 20px;
|
|
border: 1px solid var(--border);
|
|
overflow: hidden;
|
|
text-decoration: none;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.news-hero:hover {
|
|
border-color: var(--rhpz-orange);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.news-hero-bg {
|
|
position: absolute;
|
|
inset: 0;
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-color: var(--bg3);
|
|
transition: transform 0.4s ease;
|
|
}
|
|
|
|
.news-hero:hover .news-hero-bg {
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.news-hero-content {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 30px;
|
|
z-index: 2;
|
|
}
|
|
|
|
.news-hero-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
background-color: var(--rhpz-orange);
|
|
color: #111;
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.8px;
|
|
padding: 4px 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.news-hero-title {
|
|
font-size: 2rem;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
margin-bottom: 12px;
|
|
text-shadow: 0 2px 8px rgba(0,0,0,0.5);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.news-hero-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
font-size: 0.85rem;
|
|
color: rgba(255,255,255,0.75);
|
|
}
|
|
|
|
.news-hero-meta span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
background-color: rgba(0,0,0,0.4);
|
|
padding: 3px 10px;
|
|
border: 1px solid rgba(255,255,255,0.08);
|
|
}
|
|
|
|
.news-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.news-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: var(--bg2);
|
|
border: 1px solid var(--border);
|
|
text-decoration: none;
|
|
overflow: hidden;
|
|
transition: border-color 0.15s, transform 0.15s;
|
|
}
|
|
|
|
.news-card:hover {
|
|
border-color: var(--rhpz-orange);
|
|
transform: translateY(-2px);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.news-card-cover {
|
|
height: 160px;
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-color: var(--bg3);
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.news-card:hover .news-card-cover {
|
|
transform: scale(1.03);
|
|
}
|
|
|
|
.news-card-state-badge {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
background-color: rgba(0,0,0,0.7);
|
|
color: var(--rhpz-orange);
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
padding: 3px 8px;
|
|
border: 1px solid rgba(255,115,0,0.3);
|
|
}
|
|
|
|
.news-card-body {
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
gap: 8px;
|
|
}
|
|
|
|
.news-card-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
line-height: 1.3;
|
|
margin: 0;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.news-card-excerpt {
|
|
font-size: 0.82rem;
|
|
color: var(--text2);
|
|
line-height: 1.5;
|
|
margin: 0;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
flex: 1;
|
|
}
|
|
|
|
.news-card-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-size: 0.75rem;
|
|
color: var(--text2);
|
|
margin-top: auto;
|
|
padding-top: 8px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.news-card-meta span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.news-hero { height: 240px; }
|
|
.news-hero-title { font-size: 1.4rem; }
|
|
.news-grid { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
.news-header .news-meta {
|
|
gap: 12px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.news-layout {
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.news-sidebar {
|
|
width: 100%;
|
|
}
|
|
|
|
.news-content {
|
|
padding: 25px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.news-body-text {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.sidebar-block {
|
|
padding: 15px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.news-header .news-meta {
|
|
gap: 8px;
|
|
font-size: 0.8rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.news-header .meta-item {
|
|
padding: 3px 8px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.news-layout {
|
|
gap: 15px;
|
|
padding: 15px;
|
|
}
|
|
|
|
.news-main-content {
|
|
min-width: 0;
|
|
}
|
|
|
|
.news-content {
|
|
padding: 15px;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.news-body-text {
|
|
font-size: 0.95rem;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.news-body-text p {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.news-sidebar {
|
|
width: 100%;
|
|
gap: 15px;
|
|
}
|
|
|
|
.sidebar-block {
|
|
padding: 12px;
|
|
}
|
|
|
|
.sidebar-block h3 {
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.sidebar-block p {
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.news-card-title {
|
|
font-size: 0.9rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 420px) {
|
|
|
|
.news-header .news-meta {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.news-layout {
|
|
padding: 12px;
|
|
}
|
|
|
|
.news-content {
|
|
padding: 12px;
|
|
}
|
|
}
|