/*
Theme Name: OKSW
Theme URI: https://oksw.com
Description: 老郭的AI工具体验笔记自定义主题 - 从Hugo迁移
Version: 1.0
Author: 老郭
Author URI: https://oksw.com
*/

:root {
    --brand-primary: #8B5CF6;
    --brand-secondary: #6366F1;
    --accent: #A78BFA;
    --bg-body: #0a0a0f;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252542;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d0;
    --text-muted: #6b6b80;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.4);
    --success: #22c55e;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    color: #e8e8e8;
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: #6C63FF;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #00D9FF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section - 美化版 */
.hero {
    position: relative;
    padding: 100px 20px 80px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: glowPulse 6s ease-in-out infinite;
}

.hero-glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(77, 83, 232, 0.4) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.hero-glow-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
    top: 50px;
    right: -80px;
    animation-delay: 2s;
}

.hero-glow-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 140, 140, 0.25) 0%, transparent 70%);
    bottom: -50px;
    left: 30%;
    animation-delay: 4s;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(77, 83, 232, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 83, 232, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.2em;
    font-weight: 800;
    background: linear-gradient(135deg, #4D53E8 0%, #8B5CF6 50%, #F58C8C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-glow-line {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8B5CF6, #F58C8C, transparent);
    margin: 20px auto 25px;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.8; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.1); }
}

.hero-subtitle {
    font-size: 1.25em;
    color: #c8c8d8;
    margin-bottom: 12px;
    font-weight: 500;
}

.hero-subtitle em {
    color: #8B5CF6;
    font-style: normal;
    font-weight: 600;
}

.hero-desc {
    color: #888;
    font-size: 1.05em;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 1.05em;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4D53E8 0%, #8B5CF6 100%);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(77, 83, 232, 0.4);
    margin-bottom: 40px;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(77, 83, 232, 0.5);
    color: #fff;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 20px 30px;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 25px;
}

.stat-num {
    font-size: 1.8em;
    font-weight: 800;
    background: linear-gradient(135deg, #8B5CF6 0%, #F58C8C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85em;
    color: #888;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.3), transparent);
}

@media (max-width: 768px) {
    .hero {
        padding: 70px 20px 50px;
    }
    
    .hero-title {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    .hero-desc {
        font-size: 0.95em;
        margin-bottom: 25px;
    }
    
    .hero-cta {
        padding: 12px 28px;
        font-size: 1em;
        margin-bottom: 30px;
    }
    
    .hero-stats {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stat-item {
        padding: 0 15px;
    }
    
    .stat-num {
        font-size: 1.5em;
    }
    
    .stat-label {
        font-size: 0.8em;
    }
    
    .hero-glow {
        filter: blur(60px);
        opacity: 0.4;
    }
    
    .hero-glow-1 {
        width: 250px;
        height: 250px;
    }
    
    .hero-glow-2 {
        width: 200px;
        height: 200px;
    }
    
    .hero-glow-3 {
        width: 180px;
        height: 180px;
    }
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 1.8em;
    color: #6C63FF;
    margin-bottom: 10px;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: #888;
    margin-bottom: 40px;
}

/* Blog Notes */
.blog-notes-section {
    background: rgba(26, 26, 46, 0.5);
}

.blog-notes-card {
    background: rgba(26, 26, 46, 0.9);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.journal-entry {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.journal-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.journal-date {
    color: #6C63FF;
    font-weight: 600;
    font-size: 0.85em;
    margin-bottom: 4px;
    display: inline-block;
    background: rgba(77,83,232,0.1);
    padding: 1px 8px;
    border-radius: 4px;
}

.journal-entry p {
    color: #ccc;
    line-height: 1.4;
    font-size: 0.9em;
    margin: 0;
}

.blog-read-more {
    display: inline-block;
    margin-top: 6px;
    color: #6C63FF;
    font-weight: 600;
    font-size: 0.9em;
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tool-card {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.tool-card h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.tool-card .tool-category {
    display: inline-block;
    background: rgba(108, 99, 255, 0.2);
    color: #6C63FF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    margin-bottom: 12px;
}

.tool-card .tool-desc {
    color: #b8b8d0;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.tool-card .tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.tool-tag {
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8em;
}

.tool-card .tool-pricing {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.95em;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-content p {
    color: #ccc;
    margin-bottom: 15px;
}

.about-contact {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Disclaimer */
.disclaimer-box {
    background: rgba(26, 26, 46, 0.9);
    border-radius: 12px;
    padding: 25px 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-box h3 {
    color: #6C63FF;
    margin-bottom: 12px;
}

.disclaimer-box p {
    color: #888;
    font-size: 0.95em;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

/* Search */
.search-section {
    padding: 0 0 40px;
    text-align: center;
}

.search-input {
    width: 100%;
    max-width: 600px;
    padding: 16px 20px;
    font-size: 16px;
    background: rgba(26, 26, 46, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #6C63FF;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.2);
}

/* Single Tool Page */
.single-tool-header {
    text-align: center;
    padding: 60px 20px 40px;
}

.single-tool-header h1 {
    font-size: 2.2em;
    background: linear-gradient(135deg, #6C63FF 0%, #00D9FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.tool-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-content p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.8;
}

.tool-review {
    background: rgba(108, 99, 255, 0.1);
    border-left: 4px solid #6C63FF;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
    color: #b8b8d0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    .section-title {
        font-size: 1.5em;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-notes-card,
    .about-content,
    .tool-content {
        padding: 25px;
    }
}
