/*
Theme Name: SPOTech
Theme URI: https://spotech.online
Author: SPOTech
Author URI: https://spotech.online
Description: 企业智能自动化 WordPress 主题 - 基于 SPOTech 官网设计
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spotech
Tags: dark, purple, cyan, responsive, custom-menu, custom-logo
*/

:root { 
    --primary: #0a0a0f; 
    --secondary: #4E2A84; 
    --accent: #8B5CF6; 
    --accent-2: #06B6D4; 
    --glass: rgba(255,255,255,0.08); 
    --glass-border: rgba(255,255,255,0.12); 
    --text: #f0f0f0; 
    --text-muted: #a1a1aa; 
}

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body, .blog #page, .archive #page, .single-post #page { font-family: 'Noto Sans SC', -apple-system, sans-serif; background: var(--primary); color: var(--text); line-height: 1.6; overflow-x: hidden; }

/* Blog/Archive Pages Dark */
.blog .wp-block-group, .archive .wp-block-group, .single-post .wp-block-group, .blog article, .archive article { background: var(--primary); }
.wp-block-group.has-background { background: rgba(255,255,255,0.03) !important; }
.blog .wp-block-post-content, .archive .wp-block-post-content { color: var(--text); }
.blog .wp-block-post-title a, .archive .wp-block-post-title a { color: var(--text); }
.blog .wp-block-post-excerpt, .archive .wp-block-post-excerpt { color: var(--text-muted); }

/* Gutenberg blocks dark mode */
.wp-block-cover, .wp-block-group.is-layout-flow { background: var(--primary); }
.has-white-color.has-text-color, .has-white-color { color: var(--text) !important; }
.has-gray-background-color { background: rgba(255,255,255,0.08) !important; }
.bg-gradient { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(78, 42, 132, 0.08) 0%, transparent 70%); z-index: -1; }
a { text-decoration: none; color: inherit; }

/* Header */
header { position: fixed; top: 0; left: 0; right: 0; background: rgba(10, 10, 15, 0.8); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; z-index: 1000; }
.logo { font-size: 1.5rem; font-weight: 700; background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo span { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); -webkit-background-clip: text; }
nav { display: flex; gap: 2rem; }
nav a { color: var(--text-muted); font-weight: 500; transition: all 0.3s; }
nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 10rem 2rem 6rem; text-align: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-muted); padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.85rem; margin-bottom: 2rem; }
.hero-tag i { color: var(--accent-2); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
.hero h1 span { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; }
.btn { padding: 1rem 2rem; border-radius: 12px; font-weight: 600; transition: all 0.3s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-primary { background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3); }
.btn-secondary { background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--accent); }

/* Sections */
.section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-title p { color: var(--text-muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

/* Cards */
.card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; padding: 2rem; backdrop-filter: blur(20px); transition: all 0.4s; }
.card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 30px 60px rgba(139, 92, 246, 0.15); }
.card-icon { width: 64px; height: 64px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--accent-2); margin-bottom: 1.5rem; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); }

/* Products */
.products { background: var(--glass); border-radius: 40px; margin: 2rem; padding: 4rem 2rem; }
.product-card { background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 20px; overflow: hidden; transition: all 0.4s; }
.product-card:hover { transform: translateY(-8px); border-color: var(--accent-2); }
.product-image { height: 200px; background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 50%, var(--accent-2) 100%); display: flex; align-items: center; justify-content: center; }
.product-image i { font-size: 4rem; color: white; }
.product-content { padding: 1.5rem; }
.product-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.product-content p { color: var(--text-muted); font-size: 0.9rem; }
.product-tag { display: inline-block; background: linear-gradient(135deg, var(--secondary), var(--accent)); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; margin-top: 1rem; color: white; }

/* Blog */
.blog-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden; transition: all 0.3s; }
.blog-card:hover { border-color: var(--accent); }
.blog-content { padding: 1.5rem; }
.blog-date { font-size: 0.85rem; color: var(--text-muted); }
.blog-card h3 { font-size: 1.1rem; margin: 0.5rem 0; }
.blog-card p { color: var(--text-muted); font-size: 0.9rem; }

/* CTA */
.cta { text-align: center; padding: 6rem 2rem; background: linear-gradient(180deg, transparent 0%, rgba(78, 42, 132, 0.1) 100%); }
.cta h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta p { color: var(--text-muted); margin-bottom: 2rem; }

/* Footer */
footer { background: rgba(0,0,0,0.5); border-top: 1px solid var(--glass-border); padding: 4rem 2rem 2rem; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; }
.footer-col h4 { margin-bottom: 1.5rem; }
.footer-col a { color: var(--text-muted); display: block; margin-bottom: 0.75rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.9rem; }