/* ===================================
   南京旭树传媒有限公司 - 主样式文件
   =================================== */

/* ==================== 全局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "SimHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== 头部导航 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.logo h1 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

/* 导航菜单 */
.nav-menu {
    flex: 1;
    margin-left: 40px;
}

.nav-menu > ul {
    display: flex;
    gap: 5px;
}

.nav-menu > ul > li {
    position: relative;
}

.nav-menu > ul > li > a {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: #2c3e50;
    border-radius: 5px;
}

.nav-menu > ul > li > a:hover {
    background: #f0f0f0;
    color: #3498db;
}

.nav-menu i.fas {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-menu > ul > li:hover i.fas {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #555;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #3498db;
    padding-left: 20px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #3498db;
    color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #2980b9;
}

/* ==================== 首页横幅 ==================== */
.hero {
    position: relative;
    height: 100vh;
    margin-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 视频相关样式 */
.video-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-video.active {
    opacity: 1;
    visibility: visible;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
}

/* 视频导航按钮 */
.video-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.video-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.video-nav-prev {
    left: 20px;
}

.video-nav-next {
    right: 20px;
}

/* 视频标签容器 */
.video-tabs {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

/* 视频标签按钮 */
.video-tab {
    width: 45px;
    height: 45px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.video-tab:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-tab.active {
    background: rgba(52, 152, 219, 0.8);
}

.video-tab.active .tab-indicator {
    width: 100%;
}

/* 标签指示器 */
.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 标签数字 */
.tab-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.hero-item {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) translateY(30px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.hero-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateY(0);
    pointer-events: auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    max-width: 800px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: white;
    color: #3498db;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #3498db;
    transform: translateY(-2px);
}

/* ==================== 通用区块样式 ==================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-top: 20px;
}

/* ==================== 关于我们 ==================== */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.company-info {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item i {
    font-size: 1.5rem;
    color: #3498db;
}

.info-item span {
    font-size: 0.9rem;
    color: #555;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==================== 业务范围 ==================== */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* ==================== 解决方案 ==================== */
.solutions {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.solution-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-icon i {
    font-size: 1.8rem;
    color: white;
}

.solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.solution-card > p {
    margin-bottom: 20px;
    color: #7f8c8d;
    line-height: 1.6;
}

.solution-card ul {
    margin-top: 20px;
}

.solution-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.solution-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* ==================== 核心产品 ==================== */
.products {
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image i {
    font-size: 5rem;
    color: white;
    opacity: 0.9;
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.product-info > p {
    margin-bottom: 20px;
    color: #7f8c8d;
    line-height: 1.6;
}

.product-info ul {
    margin-top: 20px;
}

.product-info li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.product-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3498db;
    font-size: 1.2rem;
}

/* ==================== 合作伙伴 ==================== */
.partners {
    background: #f8f9fa;
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.partner-logo {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-logo i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 10px;
}

.partner-logo span {
    display: block;
    font-weight: 500;
    color: #2c3e50;
}

/* ==================== 联系我们 ==================== */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.contact-item i {
    font-size: 2rem;
    color: #3498db;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.contact-item p {
    color: #7f8c8d;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #2c3e50;
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3498db;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #bdc3c7;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #95a5a6;
    font-size: 0.9rem;
}

/* ==================== 响应式设计 ==================== */

/* 平板设备 */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-content {
        padding: 10px 0;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .company-info {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* 小屏幕手机 */
@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header h2::after {
        width: 60px;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .services-grid,
    .solutions-grid,
    .partners-logos {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    /* 视频切换器响应式 */
    .video-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .video-nav-prev {
        left: 10px;
    }

    .video-nav-next {
        right: 10px;
    }

    .video-tabs {
        gap: 8px;
        bottom: 20px;
    }

    .video-tab {
        width: 35px;
        height: 35px;
    }

    .tab-number {
        font-size: 0.9rem;
    }
}

/* ==================== 内页样式 ==================== */

/* 页面Banner */
.page-banner,
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 80px;
}

.page-banner h1,
.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-banner p,
.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* 导航菜单激活状态 */
.nav-menu a.active {
    color: #3498db !important;
    background: rgba(52, 152, 219, 0.1);
}

/* 确保基本样式始终生效 */
.service-card,
.solution-card,
.product-card,
.partner-logo {
    opacity: 1 !important;
    transform: none !important;
}