- Consolidated story.css (127 lines) into style.css - Removed duplicate CSS rules for content boxes - Deleted story.css file (one fewer HTTP request) - Updated story/single.html layout to remove story.css link - Result: 28% size reduction (28KB -> 20KB) - Performance: LCP improved from 1051ms to 917ms
763 lines
No EOL
14 KiB
CSS
763 lines
No EOL
14 KiB
CSS
/* CSS Variables for Theme */
|
|
:root {
|
|
--primary-color: #FF6B35;
|
|
--primary-hover: #FF8C42;
|
|
--background-color: #0A1929;
|
|
--text-color: #1A1A1A;
|
|
--card-background: rgba(26, 35, 50, 0.8);
|
|
--accent-color: #FF8C42;
|
|
--border-color: rgba(255, 107, 53, 0.2);
|
|
--text-light: #E2E8F0;
|
|
--text-muted: #94A3B8;
|
|
}
|
|
|
|
/* Reset and Base Styles */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: linear-gradient(135deg, #0A1929 0%, #1A2332 50%, #0F172A 100%);
|
|
background-attachment: fixed;
|
|
color: var(--text-light);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
position: relative;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image:
|
|
radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
|
|
radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
|
|
url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" style="background:transparent;"><defs><pattern id="bitcoin-grid" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23FF6B35" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23bitcoin-grid)"/></svg>');
|
|
background-size: 100% 100%, 100% 100%, 100px 100px;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Container */
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* Header and Navigation */
|
|
.header {
|
|
background: rgba(26, 35, 50, 0.95);
|
|
border-bottom: 1px solid rgba(255, 107, 53, 0.2);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.nav-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
height: 70px;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.nav-logo {
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.logo-image {
|
|
height: 40px;
|
|
width: auto;
|
|
filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.3));
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.logo-image:hover {
|
|
transform: scale(1.05);
|
|
filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.5));
|
|
}
|
|
|
|
.nav-menu {
|
|
display: flex;
|
|
list-style: none;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.nav-link {
|
|
color: var(--text-light);
|
|
text-decoration: none;
|
|
transition: all 0.3s ease;
|
|
padding: 8px 16px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: var(--primary-color);
|
|
background: rgba(255, 107, 53, 0.1);
|
|
}
|
|
|
|
.nav-toggle {
|
|
display: none;
|
|
flex-direction: column;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 5px;
|
|
}
|
|
|
|
.nav-toggle span {
|
|
width: 25px;
|
|
height: 3px;
|
|
background-color: var(--text-light);
|
|
margin: 3px 0;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
/* Hero Section */
|
|
.hero {
|
|
padding: 100px 0;
|
|
text-align: center;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.hero-container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: 3.5rem;
|
|
font-weight: bold;
|
|
color: var(--primary-color);
|
|
margin-bottom: 1rem;
|
|
line-height: 1.2;
|
|
text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
|
|
background: linear-gradient(135deg, #FF6B35, #FF8F65);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.hero-tagline {
|
|
font-size: 1.5rem;
|
|
color: var(--accent-color);
|
|
margin-bottom: 1.5rem;
|
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.hero-description {
|
|
font-size: 1.1rem;
|
|
color: var(--text-light);
|
|
margin-bottom: 2.5rem;
|
|
max-width: 600px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.hero-buttons {
|
|
display: flex;
|
|
gap: 1rem;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Container */
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 12px 24px;
|
|
text-decoration: none;
|
|
border-radius: 10px;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.btn::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:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.btn {
|
|
background: rgba(26, 35, 50, 0.8);
|
|
color: var(--primary-color);
|
|
border: 2px solid rgba(255, 107, 53, 0.3);
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.btn:hover {
|
|
background: rgba(255, 107, 53, 0.9);
|
|
color: white;
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 12px 40px rgba(255, 107, 53, 0.3);
|
|
border-color: rgba(255, 107, 53, 0.5);
|
|
}
|
|
|
|
.btn-large {
|
|
padding: 16px 32px;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* Sections */
|
|
.content-section {
|
|
padding: 80px 0;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 2.5rem;
|
|
color: var(--primary-color);
|
|
text-align: center;
|
|
margin-bottom: 3rem;
|
|
text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
|
|
background: linear-gradient(135deg, #FF6B35, #FF8F65);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
/* Cards */
|
|
.card-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
|
gap: 2rem;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.card {
|
|
background: rgba(26, 35, 50, 0.8);
|
|
border: 1px solid rgba(255, 107, 53, 0.2);
|
|
border-radius: 15px;
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
|
position: relative;
|
|
}
|
|
|
|
.card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), transparent);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 12px 40px rgba(255, 107, 53, 0.3);
|
|
border-color: rgba(255, 107, 53, 0.4);
|
|
}
|
|
|
|
.card-content {
|
|
padding: 2rem;
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 1.5rem;
|
|
color: var(--primary-color);
|
|
margin-bottom: 1rem;
|
|
text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
|
|
}
|
|
|
|
.card-title a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.card-title a:hover {
|
|
color: var(--primary-hover);
|
|
text-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
|
|
}
|
|
|
|
.card-excerpt {
|
|
color: var(--text-light);
|
|
margin-bottom: 1.5rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.card-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 0.9rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.card-category {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* CTA Section */
|
|
.cta-section {
|
|
padding: 80px 0;
|
|
text-align: center;
|
|
background: linear-gradient(135deg, #1a2b3d 0%, var(--background-color) 100%);
|
|
}
|
|
|
|
.cta-section .section-title {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.cta-section p {
|
|
font-size: 1.2rem;
|
|
color: var(--text-light);
|
|
margin-bottom: 2.5rem;
|
|
max-width: 600px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
/* Page Headers */
|
|
.page-header {
|
|
text-align: center;
|
|
margin-bottom: 3rem;
|
|
padding-top: 2rem;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 3rem;
|
|
color: var(--primary-color);
|
|
margin-bottom: 1rem;
|
|
text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
|
|
background: linear-gradient(135deg, #FF6B35, #FF8F65);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.page-description {
|
|
font-size: 1.2rem;
|
|
color: var(--text-light);
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Content Styles */
|
|
.content {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.content h1,
|
|
.content h2,
|
|
.content h3,
|
|
.content h4,
|
|
.content h5,
|
|
.content h6 {
|
|
color: var(--primary-color);
|
|
margin-top: 2rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.content h1 {
|
|
font-size: 2.5rem;
|
|
text-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
|
|
}
|
|
|
|
.content h2 {
|
|
font-size: 2rem;
|
|
text-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
|
|
}
|
|
|
|
.content h3 {
|
|
font-size: 1.5rem;
|
|
color: #FF8F65;
|
|
}
|
|
|
|
.content p {
|
|
margin-bottom: 1.5rem;
|
|
color: #CBD5E1;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.content ul,
|
|
.content ol {
|
|
margin-bottom: 1.5rem;
|
|
padding-left: 2rem;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.content li {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.content a {
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
border-bottom: 1px solid transparent;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
.content a:hover {
|
|
border-bottom-color: var(--primary-color);
|
|
}
|
|
|
|
.content blockquote {
|
|
border-left: 4px solid var(--primary-color);
|
|
padding-left: 1.5rem;
|
|
margin: 1.5rem 0;
|
|
font-style: italic;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.content code {
|
|
background-color: rgba(255, 107, 53, 0.1);
|
|
color: var(--accent-color);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-family: 'Monaco', 'Menlo', monospace;
|
|
}
|
|
|
|
.content pre {
|
|
background: rgba(26, 35, 50, 0.8);
|
|
border: 1px solid rgba(255, 107, 53, 0.2);
|
|
border-radius: 10px;
|
|
padding: 1.5rem;
|
|
overflow-x: auto;
|
|
margin: 1.5rem 0;
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.content pre code {
|
|
background: none;
|
|
padding: 0;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
/* Footer */
|
|
.footer {
|
|
background: rgba(26, 35, 50, 0.9);
|
|
border-top: 1px solid rgba(255, 107, 53, 0.2);
|
|
padding: 3rem 0;
|
|
margin-top: 4rem;
|
|
backdrop-filter: blur(15px);
|
|
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.footer-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.footer p {
|
|
color: var(--text-muted);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.footer-disclaimer {
|
|
font-size: 0.9rem;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.nav-menu {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background-color: rgba(0, 0, 0, 0.95);
|
|
flex-direction: column;
|
|
padding: 1rem;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.nav-menu.active {
|
|
display: flex;
|
|
}
|
|
|
|
.nav-toggle {
|
|
display: flex;
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.hero-tagline {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.card-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.hero-buttons {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.btn {
|
|
width: 200px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.hero {
|
|
padding: 60px 0;
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.content-section,
|
|
.cta-section {
|
|
padding: 60px 0;
|
|
}
|
|
}
|
|
|
|
/* Main content wrapper */
|
|
main {
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* Enhanced list styling */
|
|
.content ul li,
|
|
.content ol li {
|
|
list-style: none;
|
|
color: #CBD5E1;
|
|
margin-bottom: 0.8rem;
|
|
position: relative;
|
|
padding-left: 1.5rem;
|
|
}
|
|
|
|
.content ul li::before {
|
|
content: '₿';
|
|
position: absolute;
|
|
left: 0;
|
|
color: #FF6B35;
|
|
font-weight: bold;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Enhanced link styling */
|
|
.content a {
|
|
color: #FF8F65;
|
|
text-decoration: none;
|
|
transition: all 0.3s ease;
|
|
border-bottom: 1px solid transparent;
|
|
}
|
|
|
|
.content a:hover {
|
|
color: #FF6B35;
|
|
border-bottom-color: rgba(255, 107, 53, 0.5);
|
|
text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
|
|
}
|
|
|
|
/* Enhanced blockquote styling */
|
|
.content blockquote {
|
|
border-left: 4px solid var(--primary-color);
|
|
background: rgba(26, 35, 50, 0.8);
|
|
padding: 1.5rem;
|
|
margin: 1.5rem 0;
|
|
border-radius: 0 10px 10px 0;
|
|
color: #E2E8F0;
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.content blockquote p {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Enhanced table styling */
|
|
.content table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 1.5rem 0;
|
|
background: rgba(26, 35, 50, 0.8);
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.content th,
|
|
.content td {
|
|
padding: 1rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid rgba(255, 107, 53, 0.2);
|
|
}
|
|
|
|
.content th {
|
|
background: rgba(255, 107, 53, 0.1);
|
|
color: var(--primary-color);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.content tr:hover {
|
|
background: rgba(255, 107, 53, 0.05);
|
|
}
|
|
|
|
/* Content Box Styles - Applied to all pages with .content */
|
|
.content > h2 {
|
|
background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
|
|
color: white;
|
|
padding: 20px 25px;
|
|
border-radius: 12px;
|
|
margin: 40px 0 25px 0;
|
|
box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.content > h3 {
|
|
background: rgba(255, 107, 53, 0.15);
|
|
border: 1px solid rgba(255, 107, 53, 0.3);
|
|
color: #FF8F65;
|
|
padding: 15px 20px;
|
|
border-radius: 10px;
|
|
margin: 30px 0 20px 0;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.content > h4 {
|
|
color: #FF6B35;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid rgba(255, 107, 53, 0.2);
|
|
margin: 25px 0 15px 0;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.content p,
|
|
.content ul,
|
|
.content ol {
|
|
color: #e2e8f0;
|
|
line-height: 1.8;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.content li {
|
|
margin-bottom: 0.75rem;
|
|
padding-left: 1.5rem;
|
|
position: relative;
|
|
}
|
|
|
|
.content li::marker {
|
|
color: #FF6B35;
|
|
}
|
|
|
|
.content > h2 + p,
|
|
.content > h2 + ul,
|
|
.content > h2 + ol,
|
|
.content > h3 + p,
|
|
.content > h3 + ul,
|
|
.content > h3 + ol {
|
|
background: rgba(30, 41, 59, 0.8);
|
|
border: 1px solid rgba(255, 107, 53, 0.15);
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.content hr {
|
|
border: none;
|
|
height: 2px;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.5), transparent);
|
|
margin: 40px 0;
|
|
}
|
|
|
|
.content strong {
|
|
color: #FF8F65;
|
|
}
|
|
|
|
.story-page h1 {
|
|
color: #FF6B35;
|
|
font-size: 2.5rem;
|
|
margin-bottom: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.story-page .intro {
|
|
color: #a0aec0;
|
|
font-size: 1.2rem;
|
|
text-align: center;
|
|
margin-bottom: 3rem;
|
|
max-width: 700px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.story-page h1 {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
.story-page .content > h2 {
|
|
font-size: 1.3rem;
|
|
padding: 15px 20px;
|
|
}
|
|
|
|
.story-page .content > h2 + p,
|
|
.story-page .content > h2 + ul {
|
|
padding: 15px;
|
|
}
|
|
} |