:root {
    --bg: rgba(20, 40, 25, 0.7);
    --card-bg: rgba(255, 255, 255, 0.1);
    --primary: rgba(30, 55, 30, 0.8);
    --accent: #2e7d32;
    --gold: #81c784;
    --text: #ffffff;
    --text-light: #c8e6c9;
    --border: rgba(255, 255, 255, 0.15);
    --shadow: 0 8px 30px rgba(0, 80, 0, 0.3);
    --radius: 12px;
    --transition: 0.3s ease;
    --blur: blur(10px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-width: 320px;
    position: relative;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 40, 25, 0.5);
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 头部 */
.header {
    background: rgba(25, 50, 30, 0.75);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.header-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform var(--transition);
}

.logo a:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 36px;
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.logo-subtitle {
    font-size: 12px;
    background: rgba(129, 199, 132, 0.3);
    color: var(--gold);
    padding: 3px 10px;
    border-radius: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-date {
    color: var(--text-light);
    font-size: 14px;
}

.search-box {
    display: flex;
}

.search-input {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 25px 0 0 25px;
    background: rgba(10, 30, 15, 0.7);
    color: #fff;
    width: 180px;
    outline: none;
    transition: 0.3s;
}

.search-input:focus {
    border-color: var(--gold);
    width: 220px;
}

.search-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 25px 25px 0;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

/* 导航 */
.nav {
    background: rgba(30, 55, 30, 0.85);
    backdrop-filter: var(--blur);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    display: block;
    padding: 14px 24px;
    color: var(--text);
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

/* Banner */
.banner {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.focus-image {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: #000;
}

.focus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
    will-change: transform, opacity;
}

.focus-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    z-index: 2;
}

.focus-title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 8px;
}

.focus-info {
    color: #ccc;
    margin-bottom: 15px;
}

.focus-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--accent);
    color: #fff;
    border-radius: 25px;
    transition: 0.3s;
}

.focus-btn:hover {
    background: #388e3c;
    transform: translateY(-2px);
}

.focus-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.focus-arrow:hover {
    background: var(--accent);
}

.focus-arrow-left {
    left: 20px;
}

.focus-arrow-right {
    right: 20px;
}

.focus-dots {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.focus-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, width 0.2s;
}

.focus-dot.active {
    background: var(--gold);
    width: 28px;
    border-radius: 6px;
}

.focus-dot:hover {
    transform: scale(1.5);
    background: var(--gold);
}

.thumb-list {
    display: flex;
    background: #111;
}

.thumb-item {
    flex: 1;
    height: 80px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item:hover,
.thumb-item.active {
    opacity: 1;
}

.thumb-item.active {
    box-shadow: inset 0 -3px 0 var(--gold);
}

.thumb-item::before {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 12px;
    text-align: center;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* 内容区 */
.content {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.content-inner {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.main-section {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.full-width {
    display: block;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.section-header h3 {
    font-size: 22px;
    color: #fff;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 14px;
}

.more-link {
    margin-left: auto;
    color: var(--gold);
    font-size: 14px;
}

/* 案例卡片 */
.movie-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.movie-card {
    width: calc(25% - 15px);
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.card-link {
    display: block;
}

.card-img-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.movie-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.card-badge.hot {
    background: #2e7d32;
}

.card-badge.upcoming {
    background: #81c784;
    color: #1a3a1a;
}

.card-hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s;
    z-index: 2;
}

.movie-card:hover .card-hover-info {
    transform: translateY(0);
}

.card-rating {
    color: var(--gold);
    font-weight: 700;
}

.movie-card h4 {
    padding: 12px 15px 5px;
    font-size: 16px;
}

.card-date {
    padding: 0 15px 12px;
    font-size: 13px;
    color: var(--text-light);
}

/* 侧边栏部件 */
.sidebar-widget {
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.rank-list {
    list-style: none;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 10px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 10px;
    background: rgba(255,255,255,0.1);
    color: #aaa;
}

.rank-num.top1 {
    background: #2e7d32;
    color: #fff;
}

.rank-num.top2 {
    background: #81c784;
    color: #1a3a1a;
}

.rank-num.top3 {
    background: #a5d6a7;
    color: #1a3a1a;
}

.rank-name {
    flex: 1;
    font-size: 14px;
    color: var(--text);
}

.rank-name:hover {
    color: var(--gold);
}

.rank-box {
    color: var(--gold);
    font-weight: 700;
}

.video-wrapper video {
    width: 100%;
    border-radius: 6px;
}

.video-caption {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
    text-align: center;
}

/* 表格 */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 40px;
    border-radius: var(--radius);
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
}

.movie-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.movie-table th {
    background: rgba(30, 55, 30, 0.9);
    color: var(--gold);
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
}

.movie-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.movie-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.table-poster {
    border-radius: 4px;
    width: 60px;
}

.movie-title-link {
    color: var(--text);
    font-weight: 600;
    transition: 0.2s;
}

.movie-title-link:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* 关于页面 */
.about-section {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.about-text {
    flex: 3;
    min-width: 280px;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.about-image {
    flex: 2;
    max-width: 400px;
    min-width: 200px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.contact-section {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;        /* 顶部对齐 */
}

.contact-info {
    flex: 1;
    min-width: 250px;
    padding-top: 0;                 /* 确保无多余上间距 */
}

.contact-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 15px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 24px;
}

.contact-form-wrapper {
    flex: 2;
    min-width: 300px;
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 25px 25px 25px;      /* 去除上内边距，与左侧顶部对齐 */
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 14px;
}

.required {
    color: #ff6f00;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(129, 199, 132, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group label {
    display: inline;
    font-size: 13px;
    color: var(--text-light);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #388e3c;
    transform: translateY(-2px);
}

/* 页脚 */
.footer {
    background: rgba(20, 40, 25, 0.9);
    backdrop-filter: var(--blur);
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 40px 0 0;
}

.footer-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 12px;
}

.footer-section p,
.footer-links li a {
    color: var(--text-light);
    font-size: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links li a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    color: #a5d6a7;
    font-size: 12px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 200px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
    transition: 0.3s;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #388e3c;
    transform: translateY(-3px);
}

/* 悬浮自然之声播放器 */
.floating-audio {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 280px;
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    z-index: 998;
    box-shadow: var(--shadow);
}

.floating-audio .widget-title {
    font-size: 16px;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.play-pause-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}

.play-pause-btn:hover {
    background: rgba(255,255,255,0.25);
}

.progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 60px;
}

.progress-bar {
    height: 100%;
    background: var(--gold);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 11px;
    color: var(--text-light);
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.volume-icon {
    font-size: 14px;
    color: var(--text-light);
}

.volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.floating-audio .audio-caption {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
    width: 100%;
}

/* 页面横幅 */
.page-banner {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    height: 150px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30,55,30,0.8), rgba(46,125,50,0.7));
    backdrop-filter: var(--blur);
    position: relative;
}

.about-banner {
    background: linear-gradient(135deg, rgba(30,55,30,0.8), rgba(129,199,132,0.7));
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.page-banner-overlay h2 {
    font-size: 34px;
    color: #fff;
    margin-bottom: 8px;
}

.page-banner-overlay p {
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式 */
@media (max-width: 768px) {
    .content-inner {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .movie-card {
        width: calc(50% - 10px);
    }
    .focus-image {
        height: 300px;
    }
}