/* ==================== 全局重置与基础 ==================== */
:root {
    --gold: #fdc57b;
    --cream: #fbf2d5;
    --teal: #7fa99b;
    --dark: #394a51;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(57, 74, 81, 0.08);
    --shadow-md: 0 4px 16px rgba(57, 74, 81, 0.12);
    --shadow-lg: 0 8px 32px rgba(57, 74, 81, 0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1280px;
    --nav-height: 60px;
    --rose: #e07a8a;
    --indigo: #5b6fa0;
    --olive: #98a76f;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--cream);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 36px 16px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    padding-left: 14px;
    letter-spacing: 0.5px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.section-more {
    color: var(--teal);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.section-more:hover { text-decoration: underline; }

/* ==================== 顶部导航 ==================== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.top-nav .nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top-nav .nav-left .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.top-nav h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
    letter-spacing: 0.5px;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.nav-links a:hover, .nav-links a:focus {
    color: var(--gold);
    background: rgba(253, 197, 123, 0.1);
    outline: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-login {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-login:hover {
    background: #fbb848;
    transform: translateY(-1px);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--dark);
        flex-direction: column;
        padding: 12px 16px;
        gap: 2px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        border-radius: 0 0 var(--radius) var(--radius);
        z-index: 999;
    }
    .nav-links.active { display: flex; }
    .nav-links a {
        padding: 10px 14px;
        font-size: 0.9rem;
        width: 100%;
        border-radius: 8px;
    }
    .mobile-menu-toggle { display: block; }
    .top-nav h1 { font-size: 1.1rem; }
    .btn-login { padding: 6px 12px; font-size: 0.8rem; }
}

/* ==================== 首页 - Banner轮播 ==================== */
.banner-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.banner-carousel {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: 100%;
}

.banner-slide {
    min-width: 100%;
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    filter: brightness(0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 20px 24px;
    max-width: 700px;
}

.banner-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 16px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.btn-banner {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}
.btn-banner:hover {
    background: #fbb848;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 197, 123, 0.5);
    text-decoration: none;
}

.banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.banner-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.banner-dots button.active {
    background: var(--gold);
    border-color: var(--gold);
    width: 28px;
    border-radius: 10px;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-arrow:hover { background: rgba(255, 255, 255, 0.4); }
.banner-arrow.prev { left: 12px; }
.banner-arrow.next { right: 12px; }

@media (max-width: 768px) {
    .banner-slide { height: 260px; }
    .banner-content h2 { font-size: 1.4rem; }
    .banner-content p { font-size: 0.9rem; }
    .btn-banner { padding: 8px 18px; font-size: 0.85rem; }
    .banner-arrow { width: 32px; height: 32px; font-size: 1rem; }
    .banner-arrow.prev { left: 6px; }
    .banner-arrow.next { right: 6px; }
}

/* ==================== 首页 - 平台介绍 ==================== */
.intro-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid rgba(127, 169, 155, 0.2);
}
.intro-card p {
    font-size: 1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}
.intro-highlights {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}
.intro-highlight-item {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 12px 18px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

/* ==================== 首页 - 热门影视网格 ==================== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1024px) { .movie-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 400px) { .movie-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }

.movie-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(127, 169, 155, 0.15);
    text-decoration: none;
    color: inherit;
}
a.movie-card { cursor: pointer; }
.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}
.movie-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: #e8e8e8;
}
.movie-card-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.movie-card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.movie-meta {
    font-size: 0.75rem;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}
.movie-meta span {
    background: var(--cream);
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.7rem;
}
.movie-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    align-self: flex-start;
}

/* ==================== 首页 - 周榜推荐 ==================== */
.rank-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gold);
}
.rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rank-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: var(--cream);
}
.rank-list li:hover { background: #fef5e0; }
.rank-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rank-list li:nth-child(1) .rank-num { background: #e8a830; color: #fff; }
.rank-list li:nth-child(2) .rank-num { background: #c0c0c0; color: #fff; }
.rank-list li:nth-child(3) .rank-num { background: #cd9b6b; color: #fff; }
.rank-info { flex: 1; min-width: 0; }
.rank-info strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-info span { font-size: 0.7rem; color: #888; }

/* ==================== 首页 - 明星介绍 ==================== */
.star-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .star-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.star-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(127, 169, 155, 0.15);
    padding-bottom: 12px;
}
.star-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.star-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #e8e8e8;
}
.star-card h4 {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 700;
}
.star-card p {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

.hot-star-badge {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 4px;
    font-weight: 600;
    vertical-align: middle;
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ==================== 首页 - 剧情介绍 ==================== */
.plot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .plot-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.plot-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(127, 169, 155, 0.15);
    text-decoration: none;
    color: inherit;
}
a.plot-card { cursor: pointer; }
.plot-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.plot-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #e8e8e8;
}
.plot-card-body { padding: 12px 14px; }
.plot-card-body h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}
.plot-card-body p {
    font-size: 0.78rem;
    color: #666;
    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(4, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .detail-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.detail-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(127, 169, 155, 0.15);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
a.detail-card { cursor: pointer; }
.detail-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.detail-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: #e8e8e8;
}
.detail-card-body {
    padding: 14px;
    flex: 1;
}
.detail-card-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}
.detail-card-body .detail-info {
    font-size: 0.75rem;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
}
.detail-card-body .detail-info span {
    background: var(--cream);
    padding: 3px 8px;
    border-radius: 4px;
}

/* ==================== 首页 - 评论+右侧栏 ==================== */
.comment-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
}
.comment-main {
    flex: 1;
    min-width: 0;
}
.comment-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (max-width: 900px) {
    .comment-layout { flex-direction: column; }
    .comment-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .comment-sidebar > * { flex: 1 1 45%; min-width: 200px; }
}
@media (max-width: 500px) { .comment-sidebar > * { flex: 1 1 100%; } }

.comment-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    border-left: 4px solid var(--teal);
    transition: var(--transition);
}
.comment-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--gold);
}
.comment-user {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.comment-text {
    font-size: 0.85rem;
    color: #555;
    margin-top: 8px;
    line-height: 1.6;
}
.comment-time {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 6px;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(127, 169, 155, 0.2);
    text-align: center;
}
.sidebar-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.big-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.update-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
}
.stat-row {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    flex: 1;
    min-width: 60px;
}
.stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--teal);
}
.stat-label {
    font-size: 0.7rem;
    color: #888;
}

/* ==================== 首页 - APP下载 ==================== */
.download-section {
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    color: #fff;
    text-align: center;
}
.download-section h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--gold);
}
.download-section > p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
}
.download-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--dark);
    padding: 10px 18px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 2px solid transparent;
}
.btn-download:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 197, 123, 0.4);
    text-decoration: none;
}

/* ==================== 首页 - 常见问题 ==================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(127, 169, 155, 0.15);
}
.faq-item summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--teal);
    transition: var(--transition);
    font-weight: 700;
}
.faq-item[open] summary::after {
    content: '-';
    color: var(--gold);
}
.faq-item[open] summary { background: #fdfaf3; }
.faq-answer {
    padding: 0 18px 16px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}

/* ==================== 首页 - 友情链接 ==================== */
.friendlinks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.link_friendlinks_a {
    display: inline-block;
    color: var(--teal);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid rgba(127, 169, 155, 0.3);
    transition: var(--transition);
    letter-spacing: 0.3px;
}
.link_friendlinks_a:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
    text-decoration: none;
}

/* ==================== 首页 - 底部 ==================== */
.bottom-nav {
    width: 100%;
    background: var(--dark);
    color: #ccc;
    padding: 24px 16px;
    text-align: center;
    font-size: 0.8rem;
    line-height: 2;
}
.bottom-nav a {
    color: var(--gold);
    text-decoration: none;
}
.bottom-nav a:hover { text-decoration: underline; color: #fbb848; }
.bottom-nav .divider { color: #666; margin: 0 8px; }
.brand-mobile-link {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* =============================================================
   影视列表页 (movie-list.php) 排版
   风格:横向卡片列表 + 筛选标签 + 排序
   ============================================================= */
.list-banner {
    background: linear-gradient(135deg, var(--dark) 0%, #2c3a40 50%, var(--teal) 100%);
    color: #fff;
    padding: 60px 16px 40px;
    text-align: center;
}
.list-banner h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.list-banner p { font-size: 1rem; opacity: 0.85; }

.filter-bar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-top: -20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    min-width: 60px;
}
.filter-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tag {
    padding: 5px 14px;
    border-radius: 16px;
    background: var(--cream);
    color: var(--dark);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}
.filter-tag:hover {
    border-color: var(--gold);
    color: var(--dark);
    text-decoration: none;
}
.filter-tag.active {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
    font-weight: 700;
}

.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 4px;
}
.sort-info { font-size: 0.85rem; color: #666; }
.sort-info strong { color: var(--dark); }
.sort-options { display: flex; gap: 6px; }
.sort-option {
    padding: 4px 12px;
    font-size: 0.8rem;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.sort-option:hover, .sort-option.active {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
    text-decoration: none;
}

.h-movie-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.h-movie-item {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(127, 169, 155, 0.15);
    text-decoration: none;
    color: inherit;
}
.h-movie-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.h-movie-cover {
    flex-shrink: 0;
    width: 140px;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.h-movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.h-movie-rank {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.7);
    color: var(--gold);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}
.h-movie-body {
    flex: 1;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.h-movie-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.h-movie-score {
    background: var(--gold);
    color: var(--dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}
.h-movie-info {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}
.h-movie-info span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.h-movie-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.h-movie-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.h-movie-tags .tag {
    background: var(--cream);
    color: var(--dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
}

@media (max-width: 640px) {
    .h-movie-item { flex-direction: row; }
    .h-movie-cover { width: 100px; height: 140px; }
    .h-movie-body { padding: 10px 12px; }
    .h-movie-title { font-size: 0.95rem; }
    .h-movie-desc { display: none; }
}

/* =============================================================
   影视内容详情页 (movie-detail.php) 排版
   风格:深度杂志风 - Hero + 信息网格 + 剧情模块 + 演员 + 评论
   ============================================================= */
.detail-hero {
    position: relative;
    width: 100%;
    min-height: 460px;
    background: linear-gradient(180deg, #1a2a30 0%, var(--dark) 100%);
    overflow: hidden;
    color: #fff;
}
.detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(127, 169, 155, 0.2), transparent 70%);
    pointer-events: none;
}
.detail-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 16px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}
@media (max-width: 900px) {
    .detail-hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 30px 16px; }
}

.detail-poster {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    aspect-ratio: 2/3;
    background: #000;
}
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.detail-info-side { display: flex; flex-direction: column; gap: 16px; }
.detail-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
@media (max-width: 900px) { .detail-title { font-size: 1.6rem; } }

.detail-alias {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: -4px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 18px;
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}
.meta-row { display: flex; gap: 8px; font-size: 0.85rem; }
.meta-label {
    color: rgba(255,255,255,0.55);
    min-width: 60px;
    flex-shrink: 0;
}
.meta-value { color: #fff; font-weight: 500; }

.detail-score-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.score-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--gold) 0deg 295deg, rgba(255,255,255,0.15) 295deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.score-ring::before {
    content: '';
    position: absolute;
    inset: 6px;
    background: var(--dark);
    border-radius: 50%;
}
.score-ring-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}
.score-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.score-text {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.score-stars {
    color: var(--gold);
    font-size: 1.3rem;
    letter-spacing: 2px;
}
.score-summary { font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.score-summary strong { color: var(--gold); font-size: 1.05rem; }

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-play, .btn-fav, .btn-share {
    padding: 11px 22px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-play {
    background: var(--gold);
    color: var(--dark);
    box-shadow: 0 6px 18px rgba(253, 197, 123, 0.3);
}
.btn-play:hover {
    background: #fbb848;
    transform: translateY(-2px);
    text-decoration: none;
}
.btn-fav {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-fav:hover { background: rgba(255,255,255,0.2); text-decoration: none; }
.btn-share {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-share:hover { background: rgba(255,255,255,0.15); text-decoration: none; }

/* 剧情深入模块 */
.story-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    margin-top: 24px;
    box-shadow: var(--shadow-md);
    border-left: 6px solid var(--gold);
}
@media (max-width: 640px) { .story-section { padding: 22px 18px; } }
.story-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px dashed rgba(127,169,155,0.3);
}
.story-icon {
    width: 42px;
    height: 42px;
    background: var(--cream);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.story-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}
.story-header p { font-size: 0.75rem; color: #888; margin-top: 2px; }
.story-text { font-size: 0.95rem; color: #444; line-height: 1.9; }
.story-text p { margin-bottom: 14px; text-indent: 2em; }
.story-text strong { color: var(--dark); background: linear-gradient(transparent 60%, rgba(253,197,123,0.4) 60%); font-weight: 700; }
.story-text em { font-style: normal; color: var(--teal); font-weight: 600; }

.story-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}
@media (max-width: 640px) { .story-highlights { grid-template-columns: 1fr; } }
.highlight-card {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 12px 14px;
    border-left: 3px solid var(--gold);
}
.highlight-card h5 { font-size: 0.8rem; color: var(--teal); margin-bottom: 4px; }
.highlight-card p { font-size: 0.78rem; color: #555; line-height: 1.5; }

/* 演员模块 */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
@media (max-width: 900px) { .cast-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .cast-grid { grid-template-columns: repeat(3, 1fr); } }
.cast-card {
    background: var(--white);
    border-radius: var(--radius);
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(127, 169, 155, 0.15);
}
.cast-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.cast-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #e8e8e8;
}
.cast-info { padding: 8px 6px 10px; }
.cast-info strong {
    display: block;
    font-size: 0.8rem;
    color: var(--dark);
    font-weight: 700;
}
.cast-info span { font-size: 0.7rem; color: #888; }

/* 评价分布 */
.rating-distribution {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.rating-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rating-star { width: 40px; font-size: 0.8rem; color: #666; }
.rating-progress {
    flex: 1;
    height: 8px;
    background: var(--cream);
    border-radius: 4px;
    overflow: hidden;
}
.rating-progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
}
.rating-percent { width: 40px; text-align: right; font-size: 0.75rem; color: #777; }

/* =============================================================
   明星介绍页 (star-intro.php) 排版
   风格:杂志封面式 - 大头像banner + 时间线 + 作品集
   ============================================================= */
.star-hero {
    background: linear-gradient(135deg, #394a51 0%, #5b6fa0 50%, #e07a8a 100%);
    color: #fff;
    padding: 50px 16px;
    position: relative;
    overflow: hidden;
}
.star-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle fill='rgba(255,255,255,0.04)' cx='30' cy='30' r='2'/%3E%3C/svg%3E");
    pointer-events: none;
}
.star-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) { .star-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; } }

.star-portrait {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid rgba(255,255,255,0.2);
    box-shadow: 0 16px 50px rgba(0,0,0,0.4);
    margin: 0 auto;
}
.star-portrait img { width: 100%; height: 100%; object-fit: cover; }

.star-hero-text h2 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.star-hero-text .english-name {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 16px;
}
.star-tagline {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.9;
    border-left: 3px solid var(--gold);
    padding-left: 14px;
}
@media (max-width: 768px) { .star-tagline { border-left: none; padding-left: 0; } }

.star-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
@media (max-width: 768px) { .star-stats { justify-content: center; } }
.star-stat-item { text-align: left; }
@media (max-width: 768px) { .star-stat-item { text-align: center; } }
.star-stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.star-stat-label {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 4px;
}

.star-bio {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-top: -30px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 5;
    border-top: 4px solid var(--gold);
}
.star-bio h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.star-bio p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* 时间线 */
.timeline {
    margin-top: 24px;
    padding: 0;
    list-style: none;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--teal) 50%, transparent 100%);
}
@media (max-width: 640px) { .timeline::before { left: 60px; } }
.timeline-item {
    position: relative;
    padding-left: 130px;
    margin-bottom: 20px;
}
@media (max-width: 640px) { .timeline-item { padding-left: 80px; } }
.timeline-year {
    position: absolute;
    left: 30px;
    top: 0;
    width: 70px;
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
    text-align: center;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 0.85rem;
}
@media (max-width: 640px) { .timeline-year { left: 0; width: 50px; font-size: 0.75rem; padding: 3px 4px; } }
.timeline-item::before {
    content: '';
    position: absolute;
    left: 95px;
    top: 10px;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--gold);
}
@media (max-width: 640px) { .timeline-item::before { left: 55px; } }
.timeline-content {
    background: var(--white);
    padding: 14px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(127, 169, 155, 0.15);
}
.timeline-content h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 4px;
    font-weight: 700;
}
.timeline-content p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 作品列表(横向滚动风格) */
.works-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 4px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.works-scroll::-webkit-scrollbar { height: 6px; }
.works-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.works-scroll::-webkit-scrollbar-track { background: var(--cream); }

.work-card {
    flex: 0 0 180px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    scroll-snap-align: start;
    border: 1px solid rgba(127, 169, 155, 0.15);
}
.work-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.work-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}
.work-card-info { padding: 10px 12px; }
.work-card-info strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.work-card-info span {
    font-size: 0.7rem;
    color: #888;
}

/* 荣誉奖项 */
.awards-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 640px) { .awards-list { grid-template-columns: 1fr; } }
.award-item {
    background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
    border-radius: var(--radius);
    padding: 14px 16px;
    border-left: 4px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 12px;
}
.award-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark);
    flex-shrink: 0;
}
.award-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 700;
}
.award-text span { font-size: 0.75rem; color: #888; }

/* =============================================================
   平台介绍页 (platform.php) 排版
   风格:商业宣传页 - 大banner + 数字 + 卡片 + 时间线
   ============================================================= */
.platform-hero {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, #2c3a40 100%);
    color: #fff;
    padding: 80px 16px;
    text-align: center;
    overflow: hidden;
}
.platform-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 197, 123, 0.15), transparent 70%);
    top: -300px;
    right: -200px;
}
.platform-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127, 169, 155, 0.15), transparent 70%);
    bottom: -200px;
    left: -100px;
}
.platform-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.platform-tag {
    display: inline-block;
    background: rgba(253, 197, 123, 0.2);
    color: var(--gold);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 16px;
    border: 1px solid rgba(253, 197, 123, 0.4);
}
.platform-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}
.platform-hero h1 span { color: var(--gold); }
.platform-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
}
@media (max-width: 640px) { .platform-hero h1 { font-size: 1.8rem; } }

.platform-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.platform-btn {
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.platform-btn-primary {
    background: var(--gold);
    color: var(--dark);
}
.platform-btn-primary:hover {
    background: #fbb848;
    transform: translateY(-2px);
    text-decoration: none;
}
.platform-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.platform-btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

/* 数据统计 */
.stats-banner {
    background: var(--white);
    margin-top: -40px;
    position: relative;
    z-index: 5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 768px) { .stats-banner { grid-template-columns: repeat(2, 1fr); margin-top: -20px; } }
.stat-block { text-align: center; }
.stat-block-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    background: linear-gradient(135deg, var(--gold) 0%, var(--rose) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-block-label {
    font-size: 0.8rem;
    color: #777;
    margin-top: 4px;
}

/* 服务特色卡片 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(253, 197, 123, 0.05), transparent);
    opacity: 0;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--gold);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
    border: 1px solid rgba(127,169,155,0.2);
    position: relative;
    z-index: 1;
}
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.feature-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* 发展历程 */
.history-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .history-line { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .history-line { grid-template-columns: 1fr; } }
.history-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(127,169,155,0.2);
    position: relative;
}
.history-year {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
    display: block;
}
.history-card h4 {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 6px;
}
.history-card p {
    font-size: 0.78rem;
    color: #666;
    line-height: 1.5;
}

/* 团队介绍 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}
.team-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.team-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}
.team-info {
    padding: 12px;
}
.team-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 700;
}
.team-info span {
    display: block;
    font-size: 0.75rem;
    color: var(--teal);
    margin-top: 2px;
}
.team-info p {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

/* =============================================================
   APP下载页 (download.php) 排版
   风格:产品发布页 - 大banner + 二维码 + 版本对比 + 安装步骤
   ============================================================= */
.download-hero {
    background: linear-gradient(135deg, #1a2a30 0%, var(--dark) 50%, var(--indigo) 100%);
    color: #fff;
    padding: 70px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.download-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(253,197,123,0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(127,169,155,0.15) 0%, transparent 30%);
}
.download-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.download-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.download-hero h1 span { color: var(--gold); }
.download-hero p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 30px; }

.download-platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 40px;
}
@media (max-width: 900px) { .download-platform-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .download-platform-grid { grid-template-columns: 1fr; } }

.dl-platform-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    color: #fff;
    text-align: center;
    transition: var(--transition);
}
.dl-platform-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    border-color: var(--gold);
}
.dl-platform-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gold) 0%, #fbb848 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.8rem;
    color: var(--dark);
}
.dl-platform-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.dl-platform-card p {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 14px;
}
.dl-platform-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}
.dl-platform-btn:hover {
    background: #fbb848;
    text-decoration: none;
}

/* 二维码下载 */
.qr-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
@media (max-width: 640px) { .qr-section { flex-direction: column; text-align: center; } }
.qr-box {
    width: 140px;
    height: 140px;
    background: var(--cream);
    border: 2px dashed var(--gold);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.qr-pattern {
    width: 100px;
    height: 100px;
    background:
        linear-gradient(45deg, var(--dark) 25%, transparent 25%) 0 0/12px 12px,
        linear-gradient(-45deg, var(--dark) 25%, transparent 25%) 0 0/12px 12px,
        linear-gradient(45deg, transparent 75%, var(--dark) 75%) 8px 8px/12px 12px,
        linear-gradient(-45deg, transparent 75%, var(--dark) 75%) 8px 8px/12px 12px,
        var(--white);
    border-radius: 6px;
    position: relative;
}
.qr-pattern::before, .qr-pattern::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--dark);
    border-radius: 4px;
}
.qr-pattern::before { top: 0; left: 0; }
.qr-pattern::after { top: 0; right: 0; }
.qr-pattern .qr-corner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--dark);
    border-radius: 4px;
}

.qr-text { flex: 1; min-width: 200px; }
.qr-text h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 6px; font-weight: 700; }
.qr-text p { font-size: 0.9rem; color: #666; margin-bottom: 8px; }
.qr-text .small { font-size: 0.75rem; color: #999; }

/* 版本对比表 */
.version-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.version-table th {
    background: var(--dark);
    color: var(--gold);
    padding: 12px 14px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
}
.version-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--cream);
    font-size: 0.85rem;
    color: #555;
}
.version-table tr:last-child td { border-bottom: none; }
.version-table tr:hover td { background: var(--cream); }

/* 安装步骤 */
.install-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .install-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .install-steps { grid-template-columns: 1fr; } }
.install-step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid rgba(127,169,155,0.15);
}
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.05rem;
}
.install-step h4 { font-size: 0.95rem; color: var(--dark); margin-bottom: 6px; }
.install-step p { font-size: 0.8rem; color: #666; line-height: 1.5; }

/* 功能亮点 */
.feature-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 640px) { .feature-pillars { grid-template-columns: 1fr; } }
.pillar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-left: 4px solid var(--gold);
}
.pillar-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.pillar h4 { font-size: 0.95rem; color: var(--dark); margin-bottom: 4px; font-weight: 700; }
.pillar p { font-size: 0.8rem; color: #666; line-height: 1.5; }

/* =============================================================
   版权说明页 (copyright.php) 排版
   风格:文档文章式 - 长文 + 章节 + 提示框
   ============================================================= */
.doc-hero {
    background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
    padding: 50px 16px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(127,169,155,0.2);
}
.doc-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.doc-hero p { font-size: 0.9rem; color: #777; }
.doc-hero .updated {
    display: inline-block;
    background: var(--white);
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--teal);
    margin-top: 14px;
    box-shadow: var(--shadow-sm);
}

.doc-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: flex-start;
    margin-top: 30px;
}
@media (max-width: 900px) {
    .doc-layout { grid-template-columns: 1fr; }
    .doc-toc { position: static; }
}

.doc-toc {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
}
.doc-toc h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}
.doc-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.doc-toc li { margin-bottom: 8px; }
.doc-toc a {
    font-size: 0.85rem;
    color: #666;
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
    border-left: 3px solid transparent;
}
.doc-toc a:hover {
    color: var(--dark);
    background: var(--cream);
    border-left-color: var(--gold);
    text-decoration: none;
}

.doc-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-md);
    line-height: 1.9;
}
@media (max-width: 640px) { .doc-content { padding: 24px 20px; } }

.doc-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 32px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--gold);
}
.doc-content h2:first-child { margin-top: 0; }

.doc-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin: 22px 0 10px;
}

.doc-content p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 14px;
}
.doc-content strong { color: var(--dark); font-weight: 700; }
.doc-content em {
    font-style: normal;
    color: var(--rose);
    font-weight: 600;
}

.doc-content ul, .doc-content ol {
    margin: 0 0 16px 24px;
    color: #444;
}
.doc-content li { margin-bottom: 6px; font-size: 0.92rem; }

.doc-note {
    background: linear-gradient(135deg, rgba(253,197,123,0.1), rgba(253,197,123,0.05));
    border-left: 4px solid var(--gold);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin: 18px 0;
}
.doc-note strong { color: var(--gold); }
.doc-note p { margin: 0; font-size: 0.88rem; color: #555; }

.doc-warn {
    background: linear-gradient(135deg, rgba(224,122,138,0.1), rgba(224,122,138,0.05));
    border-left: 4px solid var(--rose);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin: 18px 0;
}
.doc-warn strong { color: var(--rose); }
.doc-warn p { margin: 0; font-size: 0.88rem; color: #555; }

.doc-info {
    background: linear-gradient(135deg, rgba(127,169,155,0.1), rgba(127,169,155,0.05));
    border-left: 4px solid var(--teal);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin: 18px 0;
}
.doc-info strong { color: var(--teal); }
.doc-info p { margin: 0; font-size: 0.88rem; color: #555; }

/* =============================================================
   联系我们页 (contact.php) 排版
   风格:卡片式 + 表单 + 办公地点
   ============================================================= */
.contact-hero {
    background: linear-gradient(135deg, var(--rose) 0%, var(--gold) 100%);
    color: #fff;
    padding: 60px 16px;
    text-align: center;
}
.contact-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.contact-hero p { font-size: 1.05rem; opacity: 0.95; }

.contact-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -30px;
    position: relative;
    z-index: 5;
}
@media (max-width: 900px) { .contact-methods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .contact-methods { grid-template-columns: 1fr; } }

.method-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}
.method-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--gold);
}
.method-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, #fbb848 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--dark);
    margin: 0 auto 14px;
}
.method-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.method-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    word-break: break-all;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    margin-top: 24px;
    align-items: stretch;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow-md);
}
.contact-form-card h2 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 6px;
    font-weight: 700;
}
.contact-form-card .subtitle {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 6px;
}
.form-group label .req { color: var(--rose); }

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--cream);
    transition: var(--transition);
    color: var(--dark);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(253,197,123,0.2);
}
.form-textarea {
    min-height: 120px;
    resize: vertical;
}
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23394a51'%3E%3Cpath d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--gold) 0%, #fbb848 100%);
    color: var(--dark);
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    width: 100%;
    margin-top: 6px;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(253, 197, 123, 0.4);
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.info-block {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(127,169,155,0.3);
}
.info-block:last-child { border-bottom: none; padding-bottom: 0; }
.info-block-icon {
    width: 42px;
    height: 42px;
    background: var(--cream);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--teal);
    flex-shrink: 0;
}
.info-block-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 4px;
    font-weight: 700;
}
.info-block-text p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.map-placeholder {
    height: 220px;
    background:
        linear-gradient(135deg, rgba(127,169,155,0.15) 25%, transparent 25%) 0 0/30px 30px,
        linear-gradient(225deg, rgba(127,169,155,0.15) 25%, transparent 25%) 0 0/30px 30px,
        linear-gradient(45deg, rgba(127,169,155,0.15) 25%, transparent 25%) 0 0/30px 30px,
        linear-gradient(315deg, rgba(127,169,155,0.15) 25%, transparent 25%) 0 0/30px 30px,
        var(--cream);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    position: relative;
}
.map-placeholder::before {
    content: '📍';
    position: absolute;
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    animation: pin-bounce 1.6s infinite;
}
@keyframes pin-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* =============================================================
   全局辅助
   ============================================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* 通用 alert 提示 */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin: 14px 0;
    font-size: 0.88rem;
}
.alert-success {
    background: rgba(127, 169, 155, 0.15);
    border-left: 4px solid var(--teal);
    color: var(--dark);
}
.alert-success strong { color: var(--teal); }