/* ============================================
   星梦传媒官网 - CSS样式表
   ============================================ */

/* CSS Variables - Design System */
:root {
    /* Colors */
    --primary: #f59e0b;
    --primary-light: #fbbf24;
    --primary-dark: #d97706;
    --background: #0a0f1a;
    --background-light: #111827;
    --foreground: #f3f4f6;
    --muted: #9ca3af;
    --border: #1f2937;
    --card: #111827;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #f59e0b, #d97706);

    /* Shadows */
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.3);
    --shadow-elegant: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: rgba(243, 244, 246, 0.8);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.nav-mobile {
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.nav-link-mobile {
    display: block;
    padding: 12px 16px;
    font-weight: 500;
    color: rgba(243, 244, 246, 0.8);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link-mobile:hover {
    color: var(--primary);
    background: rgba(245, 158, 11, 0.05);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--background);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(10, 15, 26, 0.5),
        rgba(10, 15, 26, 0.7),
        var(--background)
    );
}

.hero-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: pulse-slow 4s ease-in-out infinite;
}

.hero-decor-1 {
    top: 80px;
    left: 40px;
    width: 300px;
    height: 300px;
    background: rgba(245, 158, 11, 0.1);
}

.hero-decor-2 {
    bottom: 80px;
    right: 40px;
    width: 400px;
    height: 400px;
    background: rgba(245, 158, 11, 0.05);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 120px 20px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fade-in 0.6s ease-out forwards;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fade-in 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.8;
    animation: fade-in 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    animation: fade-in 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 500px;
    margin: 0 auto;
    animation: fade-in 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(243, 244, 246, 0.5);
    animation: bounce 2s infinite;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--primary);
}

/* ============================================
   Sections Common
   ============================================ */
.section {
    padding: 80px 0;
    position: relative;
}

.section-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(245, 158, 11, 0.2), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Products Section
   ============================================ */
.products-section {
    padding: 100px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px);
}

.product-icon {
    display: inline-flex;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.1);
}

.product-icon-1 {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.product-icon-2 {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.product-icon-3 {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: var(--primary);
}

.product-subtitle {
    color: rgba(245, 158, 11, 0.8);
    font-weight: 500;
    margin-bottom: 16px;
}

.product-desc {
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.product-features {
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.product-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.platform-tag {
    padding: 6px 12px;
    background: var(--background-light);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.product-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 500;
    transition: gap 0.3s ease;
}

.product-card:hover .product-link {
    gap: 12px;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    background: var(--background-light);
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.section-badge {
    display: inline-block;
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    margin-bottom: 40px;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.about-stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.about-stat-label {
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.value-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.value-icon {
    display: inline-flex;
    padding: 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    color: var(--primary);
    margin-bottom: 16px;
}

.value-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.value-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-text h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-text p,
.contact-text a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary);
}

.business-hours {
    padding: 24px;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    margin-top: 24px;
}

.business-hours h4 {
    font-weight: 600;
    margin-bottom: 16px;
}

.business-hours p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-form-wrapper {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
}

.contact-form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(243, 244, 246, 0.8);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--foreground);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--background-light);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 16px;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--background);
    border-radius: 12px;
    color: var(--muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
}

.footer-links h4 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    animation: slide-up 0.3s ease-out;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #10b981;
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 64px;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 20px;
    }

    .hero-content {
        padding: 100px 16px 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .section {
        padding: 60px 0;
    }

    .products-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

/* ============================================
   Mobile Slider (Full Screen)
   ============================================ */
.hero-mobile-slider {
    display: none;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--background);
}

.slider-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.slider-container .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slider-container .slide.active {
    opacity: 1;
}

.slider-container .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(
        to top,
        rgba(10, 15, 26, 0.95) 0%,
        rgba(10, 15, 26, 0.6) 40%,
        rgba(10, 15, 26, 0.2) 70%,
        transparent 100%
    );
    padding: 100px 24px 120px;
}

.slider-content {
    text-align: center;
    margin-bottom: 32px;
}

.slider-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

.slider-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
    line-height: 1.6;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(245, 158, 11, 0.3);
    border-color: var(--primary);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.slider-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
    transition: color 0.3s ease;
}

.slider-scroll:hover {
    color: var(--primary);
}

/* Progress bar for auto-play */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    z-index: 20;
    transition: width linear;
}

/* Hide desktop hero on mobile, show mobile slider */
@media (max-width: 768px) {
    .hero-desktop {
        display: none;
    }

    .hero-mobile-slider {
        display: block;
    }
}

/* Show desktop hero on larger screens, hide mobile slider */
@media (min-width: 769px) {
    .hero-desktop {
        display: block;
    }

    .hero-mobile-slider {
        display: none;
    }
}
