/* 华鸣星空文化传媒风格 - 前端主题 */

/* 基础变量 */
:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --accent-gold: #c9a962;
    --accent-gold-light: #e0c078;
    --text-white: #ffffff;
    --text-gray: #888888;
    --text-light-gray: #cccccc;
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --border-dark: #2a2a2a;
    --gradient-gold: linear-gradient(135deg, #c9a962 0%, #e0c078 50%, #c9a962 100%);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.3);
    --shadow-gold: 0 0 30px rgba(201, 169, 98, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.8;
    overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-light);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dark);
    transition: var(--transition);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light-gray);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.4s ease;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links li.active a {
    color: var(--accent-gold);
}

.nav-links li.active a::before {
    width: 100%;
}

/* 英雄区 - 全屏视频背景风格 */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
}

/* 英雄区背景图片 */
.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide:first-child {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(201, 169, 98, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(201, 169, 98, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0.5;
}

.hero-container {
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 6px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 18px 50px;
    background: transparent;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 14px;
    border: 1px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gold);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--primary-dark);
    box-shadow: var(--shadow-gold);
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(201, 169, 98, 0.5);
}

/* 区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 4px;
    color: var(--text-white);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-gold);
}

.section-title p {
    font-size: 16px;
    color: var(--text-gray);
    margin-top: 30px;
    letter-spacing: 2px;
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* 服务区块 */
.services {
    padding: 30px 0;
    background: var(--bg-dark);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 50px 40px;
    border: 1px solid var(--border-dark);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* 作品展示区块 */
.works {
    padding: 30px 0;
    background: var(--secondary-dark);
    position: relative;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-card:hover img {
    transform: scale(1.1);
}

.work-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.work-card:hover .work-card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.work-card h3 {
    font-size: 22px;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.work-card p {
    color: var(--text-gray);
    font-size: 14px;
}

/* 团队区块 */
.team {
    padding: 30px 0;
    background: var(--bg-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.team-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 3px solid var(--accent-gold);
}

.team-card h3 {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.team-card p {
    color: var(--accent-gold);
    font-size: 14px;
    letter-spacing: 1px;
}

/* 新闻区块 */
.news {
    padding: 120px 0;
    background: var(--secondary-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-content {
    padding: 30px;
}

.news-card .date {
    color: var(--accent-gold);
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.news-card h3 {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
}

/* 联系区块 */
.contact {
    padding: 120px 0;
    background: var(--bg-dark);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h3 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.contact-info p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-form {
    background: var(--bg-card);
    padding: 50px;
    border: 1px solid var(--border-dark);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-light-gray);
    font-size: 14px;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--primary-dark);
    border: 1px solid var(--border-dark);
    color: var(--text-white);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(201, 169, 98, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* 页脚 */
.footer {
    background: var(--primary-dark);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-section h4 {
    color: var(--accent-gold);
    font-size: 18px;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.footer-section p,
.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    line-height: 2;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-dark);
    color: var(--text-gray);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 20px 30px;
    }
    
    .nav-links {
        gap: 30px;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 15px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .services-grid,
    .works-grid,
    .team-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* 加载动画 */
.loading {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--border-dark) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* 文章详情页 */
.post-content {
    padding: 150px 0 100px;
    background: var(--bg-dark);
    position: relative;
}

.post-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.post-header {
    text-align: center;
    margin-bottom: 60px;
}

.post-category {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(201, 169, 98, 0.1);
    color: var(--accent-gold);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 20px;
}

.post-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: 2px;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    color: var(--text-gray);
    font-size: 14px;
    letter-spacing: 1px;
}

.post-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-soft);
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-white);
    line-height: 2;
    font-size: 16px;
}

.post-body p {
    margin-bottom: 25px;
}

.post-body h2 {
    font-size: 28px;
    color: var(--accent-gold);
    margin: 40px 0 20px;
    letter-spacing: 1px;
}

.post-body h3 {
    font-size: 22px;
    color: var(--text-white);
    margin: 30px 0 15px;
    letter-spacing: 1px;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 40px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

.post-body a:hover {
    text-decoration: underline;
}

/* 相关文章 */
.related-posts {
    padding: 100px 0;
    background: var(--secondary-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    overflow: hidden;
    transition: var(--transition);
}

.related-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-card:hover .related-image {
    transform: scale(1.1);
}

.related-content {
    padding: 25px;
}

.related-title {
    display: block;
    font-size: 18px;
    color: var(--text-white);
    text-decoration: none;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: var(--transition);
}

.related-title:hover {
    color: var(--accent-gold);
}

.related-date {
    color: var(--text-gray);
    font-size: 13px;
    letter-spacing: 1px;
}

/* 新闻列表页 */
.news-page {
    padding: 150px 0 100px;
    background: var(--bg-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
}

.news-card-image {
    height: 250px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-content {
    padding: 30px;
}

.news-card .date {
    color: var(--accent-gold);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.news-card h3 {
    font-size: 22px;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.news-card .read-more {
    display: inline-block;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    padding-left: 20px;
}

.news-card .read-more::before {
    content: '→';
    position: absolute;
    left: 0;
    transition: transform 0.4s ease;
}

.news-card .read-more:hover {
    color: var(--accent-gold-light);
}

.news-card .read-more:hover::before {
    transform: translateX(5px);
}
