/* 星空传媒网站样式 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
    overflow-x: hidden;
}

/* 星空背景效果 */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.8"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.6"/><circle cx="40" cy="60" r="1.5" fill="white" opacity="0.9"/><circle cx="90" cy="80" r="0.8" fill="white" opacity="0.7"/><circle cx="10" cy="90" r="1.2" fill="white" opacity="0.8"/></svg>') repeat;
    animation: move-stars 50s linear infinite;
}

.twinkling {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="0.5" fill="white" opacity="0.5"/><circle cx="70" cy="70" r="0.8" fill="white" opacity="0.7"/><circle cx="50" cy="10" r="0.6" fill="white" opacity="0.6"/></svg>') repeat;
    animation: move-twinkling 100s linear infinite;
}

@keyframes move-stars {
    from { transform: translateX(0); }
    to { transform: translateX(-100px); }
}

@keyframes move-twinkling {
    from { transform: translateX(0); }
    to { transform: translateX(-100px); }
}

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

::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

/* 选择文本样式 */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: #1f2937;
}

/* 动画效果 */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes count-up {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% { 
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    }
}

/* 动画类 */
.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slide-in-left 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slide-in-right 0.8s ease-out;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out;
}

.animate-count-up {
    animation: count-up 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-hover-lift {
    transition: all 0.3s ease;
}

.animate-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    text-decoration: none;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #3b82f6;
    padding: 12px 24px;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-outline-white {
    background: transparent;
    color: white;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-white:hover {
    background: white;
    color: #3b82f6;
    transform: translateY(-2px);
    text-decoration: none;
}

/* 导航栏样式 */
nav {
    min-height: 60px !important;
    background-color: rgba(255,255,255,0.95) !important;
    display: block !important;
    visibility: visible !important;
}

nav .flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

nav .flex > div {
    display: flex !important;
    align-items: center !important;
}

.nav-link {
    position: relative;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block !important;
    white-space: nowrap;
    visibility: visible !important;
}

.nav-link:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    text-decoration: none;
}

.nav-link.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* 确保导航栏在所有设备上都显示 */
@media (max-width: 768px) {
    nav {
        min-height: 50px !important;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
        display: inline-block !important;
    }
}

@media (max-width: 640px) {
    nav {
        min-height: 45px !important;
    }
    
    nav .flex > div:first-child .flex {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-link {
        padding: 4px 8px;
        font-size: 13px;
        display: inline-block !important;
    }
}

/* 统计数据样式 */
.stat-item {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.counter {
    font-variant-numeric: tabular-nums;
}

/* 服务卡片样式 */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

/* 作品案例卡片 */
.portfolio-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.portfolio-card img {
    transition: all 0.3s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

/* 评价卡片样式 */
.review-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

/* 团队卡片样式 */
.team-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

/* 新闻卡片样式 */
.news-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

/* 分类按钮样式 */
.category-btn {
    background: white;
    color: #6b7280;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* 联系卡片样式 */
.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
}

/* 输入框样式 */
.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: #1f2937;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-field::placeholder {
    color: #9ca3af;
}

/* 返回顶部按钮 */
#back-to-top {
    transition: all 0.3s ease;
    transform: translateY(100px);
}

#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

/* 企业特色样式 */
.culture-card {
    transition: all 0.3s ease;
}

.culture-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.advantage-card {
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.department-card {
    transition: all 0.3s ease;
}

.department-card:hover {
    transform: translateY(-5px);
}

/* 数据展示样式 */
.data-item {
    transition: all 0.3s ease;
}

.data-item:hover {
    transform: translateY(-5px);
}

/* 流程步骤样式 */
.process-step {
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

/* 合作伙伴logo */
.partner-logo {
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-3px);
}

/* 新闻项目样式 */
.news-item {
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
}

/* 作品集项目 */
.portfolio-item {
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

/* 客户评价样式 */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* 办公室卡片 */
.office-card {
    transition: all 0.3s ease;
}

.office-card:hover {
    transform: translateY(-5px);
}

/* 服务承诺卡片 */
.promise-card {
    transition: all 0.3s ease;
}

.promise-card:hover {
    transform: translateY(-5px);
}

/* 成就项目 */
.achievement-item {
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
}

/* 反馈卡片 */
.feedback-card {
    transition: all 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-5px);
}

/* 帮助导航卡片 */
.help-nav-card {
    transition: all 0.3s ease;
}

.help-nav-card:hover {
    transform: translateY(-5px);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 玻璃拟态效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 阴影效果 */
.shadow-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.shadow-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.25);
}

/* 品牌主题色彩 */
.brand-primary {
    color: #3b82f6;
}

.brand-secondary {
    color: #8b5cf6;
}

.brand-accent {
    color: #06b6d4;
}

.bg-brand-primary {
    background-color: #3b82f6;
}

.bg-brand-secondary {
    background-color: #8b5cf6;
}

.bg-brand-accent {
    background-color: #06b6d4;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 可见性动画 */
.fade-in {
    opacity: 0;
    animation: fade-in-up 0.6s ease-out forwards;
}

/* 延迟动画 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* 企业特有样式 */
.company-info {
    background: linear-gradient(135deg, #f0f9ff, #e0e7ff);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.service-highlight {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* 时间线样式 */
.timeline-item {
    position: relative;
    padding: 20px 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: #e5e7eb;
    transform: translateX(-50%);
}

/* 联系表单样式 */
.contact-form {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1rem;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .btn-primary,
    .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .review-card {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .btn-primary,
    .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .review-card {
        padding: 20px;
    }
}

/* 特殊效果 */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #3b82f6, #8b5cf6) border-box;
}

/* 企业专用样式 */
.corporate-header {
    background: linear-gradient(135deg, #1e3a8a, #3730a3, #7c3aed);
}

.service-icon {
    transition: all 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* 客户logo展示 */
.client-logo {
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* 项目展示网格 */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 企业数据可视化 */
.data-visualization {
    background: linear-gradient(135deg, #f0f9ff, #e0e7ff);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* 服务流程指示器 */
.process-indicator {
    position: relative;
}

.process-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: translateY(-50%);
}

.process-indicator:last-child::after {
    display: none;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .process-indicator::after {
        display: none;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .corporate-header h1 {
        font-size: 2.5rem;
    }
}

/* 桌面端优化 */
@media (min-width: 1024px) {
    .service-card:hover {
        transform: translateY(-12px);
    }
    
    .portfolio-card:hover {
        transform: translateY(-12px) scale(1.02);
    }
}

/* 企业品牌色彩系统 */
.primary-blue { color: #3b82f6; }
.primary-purple { color: #8b5cf6; }
.primary-indigo { color: #6366f1; }
.primary-teal { color: #14b8a6; }

.bg-primary-blue { background-color: #3b82f6; }
.bg-primary-purple { background-color: #8b5cf6; }
.bg-primary-indigo { background-color: #6366f1; }
.bg-primary-teal { background-color: #14b8a6; }

/* 企业级交互效果 */
.interactive-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

/* 专业级动画 */
.professional-animation {
    animation: professional-float 6s ease-in-out infinite;
}

@keyframes professional-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

/* 企业级表单样式 */
.enterprise-form {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.enterprise-form:hover {
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.1);
}

/* 成功案例展示 */
.case-study {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.case-study::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.case-study:hover::before {
    left: 100%;
}

/* 企业级按钮组 */
.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.button-group .btn-primary,
.button-group .btn-outline {
    min-width: 150px;
    justify-content: center;
}

/* 专业级卡片阴影 */
.professional-shadow {
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.professional-shadow:hover {
    box-shadow: 
        0 14px 28px rgba(0, 0, 0, 0.25),
        0 10px 10px rgba(0, 0, 0, 0.22);
}

/* 企业级网格布局 */
.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* 高级渐变效果 */
.advanced-gradient {
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #f5576c 75%,
        #4facfe 100%
    );
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 企业级响应式优化 */
@media (min-width: 1200px) {
    .enterprise-container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .enterprise-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .enterprise-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .button-group .btn-primary,
    .button-group .btn-outline {
        width: 100%;
        max-width: 300px;
    }
}