
:root {
--gold: #f1c40f;
--dark: #34495e;
--light: #ecf0f1;
--blue: #3498db;
--dark-hover: #2c3e50;
--gold-hover: #e0b80d;
--blue-hover: #2980b9;
--card-bg: #ffffff;
--text-dark: #2c3e50;
--text-gray: #6b7b8d;
--text-light: #95a5a6;
--border: #e0e5e9;
--shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
--shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
--radius: 10px;
--radius-sm: 6px;
--transition: 0.25s ease;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
background-color: #f5f6f8;
color: var(--text-dark);
line-height: 1.6;
min-width: 320px;
-webkit-font-smoothing: antialiased;
}

.top-nav {
width: 100%;
background-color: var(--dark);
color: #ffffff;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
transition: var(--transition);
}
.top-nav-inner {
max-width: 1400px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 24px;
height: 60px;
gap: 18px;
}
.nav-brand {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
text-decoration: none;
color: #ffffff;
font-size: 1.4rem;
font-weight: 700;
letter-spacing: 1px;
white-space: nowrap;
transition: var(--transition);
}
.nav-brand .brand-icon {
width: 38px;
height: 38px;
border-radius: var(--radius-sm);
background: var(--gold);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.3rem;
font-weight: 900;
color: var(--dark);
flex-shrink: 0;
letter-spacing: 0;
}
.nav-brand:hover {
color: var(--gold);
}
.nav-links {
display: flex;
align-items: center;
gap: 6px;
list-style: none;
flex-wrap: wrap;
justify-content: center;
}
.nav-links li a {
display: block;
padding: 8px 15px;
color: #c8d6e5;
text-decoration: none;
border-radius: 20px;
font-size: 0.93rem;
font-weight: 500;
transition: var(--transition);
white-space: nowrap;
letter-spacing: 0.3px;
}
.nav-links li a:hover,
.nav-links li a.active {
color: #ffffff;
background-color: rgba(255, 255, 255, 0.12);
}
.nav-links li a.active {
color: var(--gold);
font-weight: 600;
background-color: rgba(241, 196, 15, 0.1);
}
.nav-right {
display: flex;
align-items: center;
gap: 14px;
flex-shrink: 0;
}
.nav-search {
position: relative;
display: flex;
align-items: center;
}
.nav-search input {
width: 180px;
padding: 8px 36px 8px 14px;
border: 2px solid transparent;
border-radius: 22px;
background-color: rgba(255, 255, 255, 0.1);
color: #ffffff;
font-size: 0.9rem;
transition: var(--transition);
outline: none;
}
.nav-search input::placeholder {
color: #a0b4c8;
}
.nav-search input:focus {
width: 220px;
border-color: var(--gold);
background-color: rgba(255, 255, 255, 0.18);
}
.nav-search .search-btn {
position: absolute;
right: 4px;
background: none;
border: none;
color: #c8d6e5;
cursor: pointer;
font-size: 1rem;
padding: 6px 10px;
transition: var(--transition);
line-height: 1;
}
.nav-search .search-btn:hover {
color: var(--gold);
}
.nav-user {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
padding: 6px 14px 6px 6px;
border-radius: 22px;
transition: var(--transition);
background-color: rgba(255, 255, 255, 0.08);
text-decoration: none;
color: #ffffff;
white-space: nowrap;
}
.nav-user:hover {
background-color: rgba(255, 255, 255, 0.16);
}
.nav-user .user-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
border: 2px solid var(--gold);
flex-shrink: 0;
}
.nav-user .user-name {
font-size: 0.9rem;
font-weight: 500;
}
.nav-user .login-text {
font-size: 0.9rem;
font-weight: 500;
color: var(--gold);
}
.mobile-menu-toggle {
display: none;
background: none;
border: none;
color: #ffffff;
font-size: 1.6rem;
cursor: pointer;
padding: 4px 8px;
line-height: 1;
}

.hero-section {
position: relative;
width: 100%;
max-width: 1400px;
margin: 20px auto 0;
padding: 0 24px;
border-radius: var(--radius);
overflow: hidden;
height: 320px;
}
.hero-section .hero-img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
border-radius: var(--radius);
}
.hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(52, 73, 94, 0.75) 0%, rgba(52, 73, 94, 0.2) 60%, rgba(0, 0, 0, 0.55) 100%);
border-radius: var(--radius);
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 36px 40px;
}
.hero-overlay .hero-tag {
display: inline-block;
background-color: var(--gold);
color: var(--dark);
font-weight: 700;
font-size: 0.8rem;
padding: 5px 14px;
border-radius: 16px;
letter-spacing: 1px;
margin-bottom: 10px;
width: fit-content;
text-transform: uppercase;
}
.hero-overlay .hero-title {
font-size: 2.2rem;
font-weight: 700;
color: #ffffff;
letter-spacing: 1px;
margin-bottom: 6px;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.hero-overlay .hero-subtitle {
font-size: 1rem;
color: #dce6f0;
letter-spacing: 0.5px;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.hero-overlay .hero-btn {
display: inline-block;
margin-top: 14px;
background-color: var(--gold);
color: var(--dark);
font-weight: 700;
padding: 10px 26px;
border-radius: 24px;
text-decoration: none;
letter-spacing: 0.5px;
transition: var(--transition);
width: fit-content;
font-size: 0.95rem;
}
.hero-overlay .hero-btn:hover {
background-color: #e8b80a;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
}

.main-content-wrapper {
max-width: 1400px;
margin: 24px auto;
padding: 0 24px;
display: flex;
gap: 24px;
align-items: flex-start;
}
.main-content {
flex: 1;
min-width: 0;
}
.sidebar {
width: 320px;
flex-shrink: 0;
position: sticky;
top: 80px;
display: flex;
flex-direction: column;
gap: 20px;
}

.section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18px;
flex-wrap: wrap;
gap: 10px;
}
.section-title {
font-size: 1.35rem;
font-weight: 700;
color: var(--dark);
letter-spacing: 0.5px;
position: relative;
padding-left: 16px;
border-left: 4px solid var(--gold);
}
.section-more {
color: var(--blue);
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
transition: var(--transition);
white-space: nowrap;
}
.section-more:hover {
color: var(--blue-hover);
text-decoration: underline;
}

.movie-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 16px;
margin-bottom: 32px;
}
.movie-card {
background: var(--card-bg);
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
cursor: pointer;
position: relative;
display: flex;
flex-direction: column;
}
.movie-card:hover {
transform: translateY(-6px);
box-shadow: var(--shadow-hover);
}
.movie-card .card-img-wrapper {
position: relative;
width: 100%;
padding-top: 140%;
overflow: hidden;
background-color: #e8ecf0;
flex-shrink: 0;
}
.movie-card .card-img-wrapper img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s ease;
display: block;
}
.movie-card:hover .card-img-wrapper img {
transform: scale(1.08);
}
.movie-card .card-badge {
position: absolute;
top: 8px;
left: 8px;
background: var(--gold);
color: var(--dark);
font-size: 0.7rem;
font-weight: 700;
padding: 3px 10px;
border-radius: 12px;
z-index: 2;
letter-spacing: 0.5px;
}
.movie-card .card-rating {
position: absolute;
top: 8px;
right: 8px;
background: rgba(52, 73, 94, 0.85);
color: var(--gold);
font-size: 0.75rem;
font-weight: 700;
padding: 3px 9px;
border-radius: 12px;
z-index: 2;
letter-spacing: 0.3px;
}
.movie-card .card-info {
padding: 10px 12px 12px;
flex: 1;
display: flex;
flex-direction: column;
gap: 3px;
}
.movie-card .card-title {
font-size: 0.9rem;
font-weight: 600;
color: var(--text-dark);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
letter-spacing: 0.3px;
}
.movie-card .card-meta {
font-size: 0.75rem;
color: var(--text-gray);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.movie-card .card-tags {
display: flex;
gap: 4px;
flex-wrap: wrap;
margin-top: 2px;
}
.movie-card .card-tag {
font-size: 0.68rem;
padding: 2px 7px;
border-radius: 10px;
background-color: #eef2f6;
color: var(--text-gray);
white-space: nowrap;
}
.movie-card .card-tag.hot {
background-color: #fef5d5;
color: #b8860b;
font-weight: 600;
}

.star-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin-bottom: 32px;
}
.star-card {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
text-align: center;
padding: 20px 14px 16px;
transition: var(--transition);
cursor: pointer;
}
.star-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-hover);
}
.star-card .star-img-wrapper {
width: 90px;
height: 90px;
border-radius: 50%;
overflow: hidden;
margin: 0 auto 12px;
border: 3px solid var(--gold);
background-color: #e8ecf0;
}
.star-card .star-img-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.star-card .star-name {
font-size: 1rem;
font-weight: 600;
color: var(--text-dark);
margin-bottom: 2px;
letter-spacing: 0.3px;
}
.star-card .star-role {
font-size: 0.78rem;
color: var(--text-gray);
margin-bottom: 6px;
}
.star-card .star-works {
font-size: 0.72rem;
color: var(--blue);
font-weight: 500;
}

.plot-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin-bottom: 32px;
}
.plot-card {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
overflow: hidden;
transition: var(--transition);
cursor: pointer;
}
.plot-card:hover {
box-shadow: var(--shadow-hover);
transform: translateY(-3px);
}
.plot-card .plot-img-wrapper {
width: 100%;
height: 160px;
overflow: hidden;
background-color: #e8ecf0;
}
.plot-card .plot-img-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.4s ease;
}
.plot-card:hover .plot-img-wrapper img {
transform: scale(1.05);
}
.plot-card .plot-content {
padding: 14px 14px 16px;
}
.plot-card .plot-title {
font-size: 0.95rem;
font-weight: 600;
color: var(--dark);
margin-bottom: 6px;
letter-spacing: 0.3px;
}
.plot-card .plot-text {
font-size: 0.8rem;
color: var(--text-gray);
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}

.detail-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 18px;
margin-bottom: 32px;
}
.detail-card {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
display: flex;
gap: 16px;
padding: 16px;
transition: var(--transition);
cursor: pointer;
overflow: hidden;
}
.detail-card:hover {
box-shadow: var(--shadow-hover);
transform: translateY(-2px);
}
.detail-card .detail-img-wrapper {
width: 120px;
height: 170px;
flex-shrink: 0;
border-radius: var(--radius-sm);
overflow: hidden;
background-color: #e8ecf0;
}
.detail-card .detail-img-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.4s ease;
}
.detail-card:hover .detail-img-wrapper img {
transform: scale(1.06);
}
.detail-card .detail-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
}
.detail-card .detail-title {
font-size: 1.05rem;
font-weight: 700;
color: var(--dark);
letter-spacing: 0.3px;
}
.detail-card .detail-meta-row {
display: flex;
gap: 10px;
flex-wrap: wrap;
font-size: 0.78rem;
color: var(--text-gray);
}
.detail-card .detail-meta-row span {
background: #eef2f6;
padding: 2px 8px;
border-radius: 10px;
white-space: nowrap;
}
.detail-card .detail-desc {
font-size: 0.82rem;
color: var(--text-gray);
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
margin-top: 2px;
}
.detail-card .detail-rating-stars {
color: var(--gold);
font-size: 0.9rem;
letter-spacing: 2px;
margin-top: auto;
}

.comments-section {
margin-bottom: 32px;
}
.comments-list {
display: flex;
flex-direction: column;
gap: 14px;
}
.comment-item {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 18px 20px;
display: flex;
gap: 14px;
transition: var(--transition);
}
.comment-item:hover {
box-shadow: var(--shadow-hover);
background: #fdfefe;
}
.comment-item .comment-avatar-wrapper {
width: 46px;
height: 46px;
border-radius: 50%;
overflow: hidden;
flex-shrink: 0;
background-color: #e8ecf0;
border: 2px solid var(--border);
}
.comment-item .comment-avatar-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.comment-item .comment-body {
flex: 1;
min-width: 0;
}
.comment-item .comment-user {
font-weight: 600;
font-size: 0.9rem;
color: var(--dark);
letter-spacing: 0.3px;
}
.comment-item .comment-meta {
font-size: 0.72rem;
color: var(--text-light);
margin-bottom: 4px;
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
}
.comment-item .comment-stars {
color: var(--gold);
letter-spacing: 2px;
font-size: 0.85rem;
}
.comment-item .comment-text {
font-size: 0.88rem;
color: var(--text-dark);
line-height: 1.6;
margin-top: 4px;
}
.comment-item .comment-likes {
font-size: 0.75rem;
color: var(--text-light);
margin-top: 6px;
cursor: pointer;
transition: var(--transition);
display: inline-block;
}
.comment-item .comment-likes:hover {
color: var(--blue);
}

.weekly-rank {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 20px 18px;
}
.weekly-rank .rank-title {
font-size: 1.15rem;
font-weight: 700;
color: var(--dark);
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 2px solid var(--border);
letter-spacing: 0.5px;
display: flex;
align-items: center;
gap: 8px;
}
.weekly-rank .rank-title .rank-icon {
display: inline-block;
width: 28px;
height: 28px;
background: var(--gold);
border-radius: 50%;
text-align: center;
line-height: 28px;
font-size: 0.85rem;
font-weight: 900;
color: var(--dark);
}
.rank-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 2px;
}
.rank-list li {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 8px;
border-radius: var(--radius-sm);
transition: var(--transition);
cursor: pointer;
}
.rank-list li:hover {
background-color: #f8f9fb;
}
.rank-list .rank-num {
width: 26px;
height: 26px;
border-radius: 50%;
text-align: center;
line-height: 26px;
font-weight: 700;
font-size: 0.8rem;
flex-shrink: 0;
background-color: #e8ecf0;
color: var(--text-gray);
}
.rank-list li:nth-child(1) .rank-num,
.rank-list li:nth-child(2) .rank-num,
.rank-list li:nth-child(3) .rank-num {
background-color: var(--gold);
color: var(--dark);
}
.rank-list .rank-info {
flex: 1;
min-width: 0;
}
.rank-list .rank-name {
font-size: 0.88rem;
font-weight: 500;
color: var(--text-dark);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.rank-list .rank-type {
font-size: 0.72rem;
color: var(--text-light);
}
.rank-list .rank-hot {
font-size: 0.75rem;
color: #e74c3c;
font-weight: 600;
white-space: nowrap;
flex-shrink: 0;
}

.sidebar-banner {
background: linear-gradient(135deg, var(--blue), #2471a3);
border-radius: var(--radius);
padding: 22px 18px;
color: #ffffff;
text-align: center;
box-shadow: var(--shadow);
cursor: pointer;
transition: var(--transition);
}
.sidebar-banner:hover {
box-shadow: var(--shadow-hover);
transform: translateY(-2px);
}
.sidebar-banner .banner-label {
font-size: 0.72rem;
letter-spacing: 2px;
opacity: 0.85;
text-transform: uppercase;
margin-bottom: 4px;
}
.sidebar-banner .banner-main {
font-size: 1.1rem;
font-weight: 700;
letter-spacing: 0.5px;
}
.sidebar-banner .banner-sub {
font-size: 0.8rem;
opacity: 0.9;
margin-top: 4px;
}

.footer-nav {
width: 100%;
background-color: var(--dark);
color: #bcc5cf;
padding: 36px 24px 20px;
margin-top: 40px;
}
.footer-inner {
max-width: 1400px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 30px;
}
.footer-col h4 {
color: #ffffff;
font-size: 1rem;
font-weight: 600;
margin-bottom: 12px;
letter-spacing: 0.5px;
}
.footer-col ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 6px;
}
.footer-col ul li a {
color: #bcc5cf;
text-decoration: none;
font-size: 0.85rem;
transition: var(--transition);
}
.footer-col ul li a:hover {
color: var(--gold);
}
.footer-bottom {
max-width: 1400px;
margin: 20px auto 0;
padding-top: 18px;
border-top: 1px solid rgba(255, 255, 255, 0.12);
text-align: center;
font-size: 0.8rem;
color: #8899aa;
letter-spacing: 0.3px;
}

@media (max-width: 1200px) {
.movie-grid {
    grid-template-columns: repeat(4, 1fr);
}
.sidebar {
    width: 280px;
}
}
@media (max-width: 992px) {
.main-content-wrapper {
    flex-direction: column;
}
.sidebar {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}
.sidebar>* {
    flex: 1 1 280px;
    min-width: 250px;
}
.movie-grid {
    grid-template-columns: repeat(3, 1fr);
}
.star-grid {
    grid-template-columns: repeat(2, 1fr);
}
.plot-grid {
    grid-template-columns: repeat(2, 1fr);
}
.detail-grid {
    grid-template-columns: 1fr;
}
.footer-inner {
    grid-template-columns: repeat(2, 1fr);
}
.nav-links {
    display: none;
}
.mobile-menu-toggle {
    display: block;
}
.nav-search input {
    width: 130px;
}
.nav-search input:focus {
    width: 160px;
}
.hero-section {
    height: 220px;
}
.hero-overlay {
    padding: 20px 24px;
}
.hero-overlay .hero-title {
    font-size: 1.5rem;
}
.hero-overlay .hero-subtitle {
    font-size: 0.85rem;
}
}
@media (max-width: 600px) {
.movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.star-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.plot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.detail-grid {
    grid-template-columns: 1fr;
}
.detail-card {
    flex-direction: row;
    gap: 10px;
    padding: 10px;
}
.detail-card .detail-img-wrapper {
    width: 80px;
    height: 115px;
}
.footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.top-nav-inner {
    padding: 0 10px;
    gap: 8px;
}
.nav-brand {
    font-size: 1.1rem;
}
.nav-brand .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
}
.nav-search input {
    width: 90px;
    font-size: 0.8rem;
    padding: 7px 28px 7px 10px;
}
.nav-search input:focus {
    width: 120px;
}
.nav-user .user-name {
    display: none;
}
.hero-section {
    height: 170px;
    margin-top: 10px;
    padding: 0 10px;
}
.hero-overlay {
    padding: 14px 16px;
}
.hero-overlay .hero-title {
    font-size: 1.2rem;
}
.hero-overlay .hero-subtitle {
    font-size: 0.75rem;
}
.hero-overlay .hero-btn {
    padding: 7px 16px;
    font-size: 0.8rem;
}
.section-title {
    font-size: 1.1rem;
}
.movie-card .card-info {
    padding: 6px 8px 8px;
}
.movie-card .card-title {
    font-size: 0.78rem;
}
.movie-card .card-meta {
    font-size: 0.68rem;
}
.movie-card .card-tag {
    font-size: 0.62rem;
    padding: 1px 5px;
}
.main-content-wrapper {
    padding: 0 10px;
    gap: 14px;
}
.sidebar {
    gap: 10px;
}
.comment-item {
    padding: 12px 14px;
    gap: 10px;
}
.comment-item .comment-avatar-wrapper {
    width: 36px;
    height: 36px;
}
}
