/* ============================================
   墨语官网 - 自定义样式 (科技感风格)
   ============================================ */

/* ============================================
   Base
   ============================================ */
* {
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: #4A90A4;
    color: white;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #FFFDF5;
}

::-webkit-scrollbar-thumb {
    background: #E5E0D8;
}

::-webkit-scrollbar-thumb:hover {
    background: #4A90A4;
}

/* ============================================
   Custom Cursor
   ============================================ */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #4A90A4;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #4A90A4;
}

.cursor-follower {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(74, 144, 164, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: rgba(74, 144, 164, 0.1);
}

/* ============================================
   Tech Buttons
   ============================================ */
.btn-tech {
    position: relative;
    display: inline-block;
    background: transparent;
    border: 1px solid #4A90A4;
    color: #4A90A4;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 164, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-tech:hover {
    background: rgba(74, 144, 164, 0.05);
    border-color: #6BA8BC;
    color: #3A7A8E;
}

.btn-tech:hover::before {
    left: 100%;
}

.btn-tech-primary {
    position: relative;
    display: inline-block;
    background: #4A90A4;
    border: 1px solid #4A90A4;
    color: #FFFDF5;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-tech-primary::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;
}

.btn-tech-primary:hover {
    background: #3A7A8E;
    border-color: #3A7A8E;
    box-shadow: 0 0 30px rgba(74, 144, 164, 0.3);
}

.btn-tech-primary:hover::before {
    left: 100%;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: rgba(255, 253, 245, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#navbar.scrolled {
    background: rgba(255, 253, 245, 0.95);
    box-shadow: 0 1px 0 #E5E0D8;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #4A90A4;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   HUD Corner Elements
   ============================================ */
.hud-corner {
    width: 60px;
    height: 60px;
}

.hud-corner-tl {
    border-top: 1px solid #4A90A4;
    border-left: 1px solid #4A90A4;
}

.hud-corner-tr {
    border-top: 1px solid #4A90A4;
    border-right: 1px solid #4A90A4;
}

.hud-corner-bl {
    border-bottom: 1px solid #4A90A4;
    border-left: 1px solid #4A90A4;
}

.hud-corner-br {
    border-bottom: 1px solid #4A90A4;
    border-right: 1px solid #4A90A4;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-tag,
.hero-title,
.hero-subtitle,
.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-tag {
    animation-delay: 0s;
}

.hero-title {
    animation-delay: 0.2s;
}

.hero-subtitle {
    animation-delay: 0.4s;
}

.hero-cta {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    animation: float 2s ease-in-out infinite;
}

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

.scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ============================================
   Typing Effect
   ============================================ */
.typing-block {
    min-height: 120px;
}

.typing-text {
    display: inline;
}

.typing-cursor {
    display: inline-block;
    color: #4A90A4;
    font-weight: 100;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* ============================================
   Cards (Tech Style)
   ============================================ */
.card-tech {
    position: relative;
    background: #fff8e7;
    border: 1px solid #E5E0D8;
    transition: all 0.4s ease;
}

.card-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4A90A4, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.card-tech:hover {
    border-color: #4A90A4;
    box-shadow: 0 10px 40px rgba(74, 144, 164, 0.1);
    transform: translateY(-4px);
}

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

/* ============================================
   Philosophy Cards
   ============================================ */
.philosophy-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.philosophy-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.philosophy-card-inner {
    transition: all 0.4s ease;
}

.philosophy-card:hover .philosophy-card-inner {
    border-color: #4A90A4;
    box-shadow: 0 10px 40px rgba(74, 144, 164, 0.08);
}

/* ============================================
   Feature Visual
   ============================================ */
.feature-visual {
    position: relative;
    transition: all 0.4s ease;
}

.feature-visual-inner {
    transition: all 0.4s ease;
}

.feature-visual:hover .feature-visual-inner {
    box-shadow: 0 20px 60px rgba(74, 144, 164, 0.15);
}

.feature-icon {
    transition: all 0.4s ease;
}

.feature-visual:hover .feature-icon {
    border-color: #4A90A4;
    box-shadow: 0 0 30px rgba(74, 144, 164, 0.2);
}

/* ============================================
   Fade Up Animation
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-tag {
    display: inline-block;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E5E0D8;
}

.feature-list-item {
    transition: all 0.3s ease;
}

.feature-list-item:hover {
    transform: translateX(8px);
}

/* ============================================
   Download Card
   ============================================ */
.download-card {
    transition: all 0.4s ease;
}

.download-card:hover {
    box-shadow: 0 20px 60px rgba(74, 144, 164, 0.1);
}

.download-icon {
    transition: all 0.4s ease;
}

.download-card:hover .download-icon {
    box-shadow: 0 0 40px rgba(74, 144, 164, 0.2);
}

/* ============================================
   Philosophy Statement
   ============================================ */
.philosophy-statement {
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.02), rgba(232, 213, 183, 0.05));
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .custom-cursor,
    .cursor-follower {
        display: none !important;
    }
    
    * {
        cursor: auto !important;
    }
}

/* ============================================
   Page Load
   ============================================ */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body.loaded {
    opacity: 1;
}

/* ============================================
   Mobile Notice
   ============================================ */
#mobile-notice {
    background: #FFFDF5;
    color: #2D2D2D;
}

#mobile-notice.hidden {
    display: none;
}
