/* Blueprint Style CSS - 重构优化版 */

/* ==============================================
   基础重置和通用样式
   ============================================== */
* {
    border-radius: 0 !important;
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

body {
    font-family: 'Arial', sans-serif !important;
    position: relative;
    margin: 0;
    padding: 0;
}

/* 移除所有阴影和特效 */
.shadow-xl, .shadow-lg, .shadow-md, .shadow-sm, .drop-shadow-lg,
.transform, .hover\:scale-105, .hover\:-translate-y-2,
.hover\:scale-105:hover, .hover\:-translate-y-2:hover {
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

/* 移除所有彩色背景和渐变 */
.bg-gradient-to-r, .bg-gradient-to-br, [class*="from-"], [class*="to-"], [class*="via-"],
.bg-clip-text, .text-transparent {
    background: transparent !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}

/* 移除特殊效果 */
.backdrop-blur-md {
    backdrop-filter: none !important;
}

/* 图片保持原样 */
img {
    border: none !important;
}

/* App图标添加阴影 - 强制显示 */
img[alt*="Blossom"], img[alt*="Icon"], img[alt*="icon"], img[src*="Icon"], img[src*="icon"], 
img[alt*="Logo"], img[alt*="logo"], .w-16.h-16, .md\:w-20.md\:h-20 {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15)) !important;
    box-shadow: none !important;
    border: none !important;
}

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

::-webkit-scrollbar-thumb {
    border-radius: 0;
}

/* ==============================================
   浅色模式 (Light Mode)
   ============================================== */
@media (prefers-color-scheme: light) {
    /* 主背景和网格 */
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background-image: 
            linear-gradient(rgba(30, 58, 138, 0.15) 1px, transparent 1px),
            linear-gradient(90deg, rgba(30, 58, 138, 0.15) 1px, transparent 1px),
            linear-gradient(rgba(30, 58, 138, 0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(30, 58, 138, 0.08) 1px, transparent 1px);
        background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
        pointer-events: none;
    }
    
    /* 页面边框 - 只保留左右两侧 */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 20px;
        right: 20px;
        bottom: 0;
        border-left: 2px solid rgba(30, 58, 138, 0.2);
        border-right: 2px solid rgba(30, 58, 138, 0.2);
        z-index: -1;
        pointer-events: none;
    }
    
    /* 文字颜色 */
    h1, h2, h3, h4, h5, h6, p, span, div, a, li {
        color: #000000 !important;
    }
    
    /* APP标题特殊处理 */
    h1 {
        color: #1e3a8a !important;
    }
    
    /* 导航栏 */
    nav {
        background: rgba(255, 255, 255, 0.9) !important;
        border-bottom: none !important;
        backdrop-filter: none !important;
    }
    
    /* 链接样式 */
    a {
        color: #1e3a8a !important;
        text-decoration: none !important;
    }
    
    a:hover {
        color: #1e3a8a !important;
        text-decoration: none !important;
    }
    
    /* 按钮样式 */
    button, a[class*="bg-"] {
        background: transparent !important;
        border: 2px solid #1e3a8a !important;
        color: #1e3a8a !important;
        padding: 8px 16px;
        text-decoration: none !important;
    }
    
    button:hover, a[class*="bg-"]:hover {
        background: rgba(30, 58, 138, 0.1) !important;
        color: #1e3a8a !important;
    }
    
    /* 图标样式 */
    svg {
        stroke: #1e3a8a !important;
        fill: transparent !important;
    }
    
    i[class*="fa"], .icon {
        color: #1e3a8a !important;
    }
    
    /* 滚动条 */
    ::-webkit-scrollbar-track {
        background: #ffffff;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #1e3a8a;
    }
    
    /* 选择文本 */
    ::selection {
        background: rgba(30, 58, 138, 0.2);
        color: #1e3a8a;
    }
    
    /* 功能卡片 */
    #features .grid > div {
        background: rgba(255, 255, 255, 0.8) !important;
        border: 1px solid rgba(30, 58, 138, 0.3) !important;
    }
    
    #features h2, #features h3 {
        text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
        font-weight: bold !important;
        color: #000000 !important;
    }
    
    #features p {
        text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
        font-weight: normal !important;
        color: #000000 !important;
    }
    
    /* Footer */
    footer {
        background: rgba(255, 255, 255, 0.8) !important;
        border-top: 1px solid rgba(30, 58, 138, 0.2) !important;
        backdrop-filter: blur(5px);
    }
    
    /* 覆盖Tailwind类 */
    .text-gray-600, .text-gray-500, .text-gray-700, .text-gray-800, .text-gray-900,
    .text-gray-300, .text-gray-200, .text-gray-100 {
        color: #000000 !important;
    }
    
    .bg-white, .bg-gray-50, .bg-gray-100, .bg-gray-200, .bg-gray-800, .bg-gray-900 {
        background: transparent !important;
    }
    
    .dark\:bg-gray-900, .dark\:bg-gray-800, .dark\:from-gray-900, .dark\:to-gray-800,
    .dark\:text-gray-200, .dark\:text-gray-300 {
        background: transparent !important;
        color: #000000 !important;
    }
    
    .bg-gradient-to-br {
        background: #ffffff !important;
    }
    
    .bg-white\/80, .dark\:bg-gray-900\/80 {
        background: rgba(255, 255, 255, 0.9) !important;
    }
}

/* ==============================================
   深色模式 (Dark Mode)
   ============================================== */
@media (prefers-color-scheme: dark) {
    /* 主背景和网格 */
    body {
        background: #0f172a !important;
        color: #ffffff !important;
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background-image: 
            linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
            linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
        background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
        pointer-events: none;
    }
    
    /* 页面边框 - 只保留左右两侧 */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 20px;
        right: 20px;
        bottom: 0;
        border-left: 2px solid rgba(255, 255, 255, 0.2);
        border-right: 2px solid rgba(255, 255, 255, 0.2);
        z-index: -1;
        pointer-events: none;
    }
    
    /* 文字颜色 */
    h1, h2, h3, h4, h5, h6, p, span, div, a, li {
        color: #ffffff !important;
    }
    
    /* 导航栏 */
    nav {
        background: rgba(15, 23, 42, 0.9) !important;
        border-bottom: none !important;
        backdrop-filter: none !important;
    }
    
    /* 链接样式 */
    a {
        color: #ffffff !important;
        text-decoration: none !important;
    }
    
    a:hover {
        color: #ffffff !important;
        text-decoration: none !important;
    }
    
    /* 按钮样式 */
    button, a[class*="bg-"] {
        background: transparent !important;
        border: 2px solid #ffffff !important;
        color: #ffffff !important;
        padding: 8px 16px;
        text-decoration: none !important;
    }
    
    button:hover, a[class*="bg-"]:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }
    
    /* 图标样式 */
    svg {
        stroke: #ffffff !important;
        fill: transparent !important;
    }
    
    i[class*="fa"], .icon {
        color: #ffffff !important;
    }
    
    /* 滚动条 */
    ::-webkit-scrollbar-track {
        background: #0f172a;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #ffffff;
    }
    
    /* 选择文本 */
    ::selection {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }
    
    /* 功能卡片 */
    #features .grid > div {
        background: rgba(15, 23, 42, 0.8) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    #features h2, #features h3 {
        text-shadow: 1px 1px 2px rgba(15, 23, 42, 0.8) !important;
        font-weight: bold !important;
    }
    
    #features p {
        text-shadow: 1px 1px 2px rgba(15, 23, 42, 0.8) !important;
        font-weight: normal !important;
    }
    
    /* Footer */
    footer {
        background: rgba(15, 23, 42, 0.8) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(5px);
    }
    
    /* 覆盖Tailwind类 */
    .text-gray-600, .text-gray-500, .text-gray-700, .text-gray-800, .text-gray-900,
    .text-gray-300, .text-gray-200, .text-gray-100 {
        color: #ffffff !important;
    }
    
    .bg-white, .bg-gray-50, .bg-gray-100, .bg-gray-200, .bg-gray-800, .bg-gray-900 {
        background: transparent !important;
    }
    
    .dark\:bg-gray-900, .dark\:bg-gray-800, .dark\:from-gray-900, .dark\:to-gray-800,
    .dark\:text-gray-200, .dark\:text-gray-300 {
        background: transparent !important;
        color: #ffffff !important;
    }
    
    .bg-gradient-to-br {
        background: #0f172a !important;
    }
    
    .bg-white\/80, .dark\:bg-gray-900\/80 {
        background: rgba(15, 23, 42, 0.9) !important;
    }
}

/* ==============================================
   通用样式
   ============================================== */
/* 卡片和容器 */
div[class*="bg-"], section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 功能展示区域 */
#features {
    position: relative;
}

#features .grid > div {
    backdrop-filter: blur(2px);
    padding: 20px !important;
}

/* 手机菜单按钮 */
#mobile-menu-button {
    border: none !important;
    outline: none !important;
    background: transparent !important;
}

#mobile-menu-button:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ==============================================
   响应式设计
   ============================================== */
@media (max-width: 768px) {
    body::before {
        background-size: 15px 15px, 15px 15px, 75px 75px, 75px 75px;
    }
    
    /* 移动版隐藏左右边框 */
    body::after {
        display: none !important;
    }
}