:root {
--bg: #f8fafc;
--surface: #ffffff;
--text: #1e293b;
--text-secondary: #64748b;
--text-muted: #94a3b8;
--primary: #2563eb;
--primary-dark: #1d4ed8;
--primary-light: #3b82f6;
--accent: #f59e0b;
--accent-light: #fef3c7;
--border: #e2e8f0;
--border-light: #f1f5f9;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
--shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);
--shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.12);
--radius: 16px;
--radius-sm: 10px;
--radius-xs: 8px;
--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.7;
-webkit-font-smoothing: antialiased;
font-size: 16px;
overflow-x: hidden;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; width: 100%; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 28px; }
header {
background: rgba(255, 255, 255, 0.92);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
position: sticky;
top: 0;
z-index: 100;
border-bottom: 1px solid var(--border);
}
.header-inner {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 0;
}
.logo {
font-size: 1.45rem;
font-weight: 800;
color: #0f172a;
text-decoration: none;
display: flex;
align-items: center;
gap: 9px;
letter-spacing: -0.3px;
}
.logo-img {
width: 90px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 10px;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
overflow: hidden;
}
.logo-img img {
border-style: none;
display: inline-block;
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
vertical-align: middle;
}
.nav-menu {
display: flex;
list-style: none;
gap: 10px;
align-items: center;
}
.nav-menu > li { position: relative; }
.nav-menu a {
text-decoration: none;
color: #475569;
font-weight: 500;
font-size: 0.925rem;
transition: color var(--transition);
display: block;
padding: 10px 16px;
border-radius: 8px;
white-space: nowrap;
}
.nav-menu a:hover { color: var(--primary); background: #f8fafc; }
.nav-cta {
background: var(--primary) !important;
color: #fff !important;
padding: 10px 22px !important;
border-radius: 25px !important;
font-weight: 600 !important;
font-size: 0.9rem !important;
transition: all var(--transition) !important;
box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
margin-left: 8px;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }
.arrow-icon {
font-size: 1.2rem;
margin-left: 6px;
display: inline-block;
transition: transform 0.2s;
cursor: pointer;
}
.dropdown.open > .arrow-icon { transform: rotate(180deg); }
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
background: #fff;
border-radius: 12px;
box-shadow: var(--shadow-lg);
border: 1px solid var(--border-light);
min-width: 260px;
padding: 8px 0;
opacity: 0;
visibility: hidden;
transform: translateY(8px);
transition: all 0.2s;
list-style: none;
z-index: 200;
}
.dropdown-menu li a {
padding: 10px 20px;
font-size: 0.9rem;
color: #334155;
font-weight: 500;
display: block;
}
.dropdown-menu li a:hover { background: #f1f5f9; color: var(--primary); }
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
gap: 6px;
background: none;
border: none;
padding: 8px;
z-index: 110;
}
.hamburger span {
width: 26px;
height: 2.5px;
background: #0f172a;
border-radius: 3px;
transition: all 0.3s;
transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 48px;
height: 48px;
background: var(--primary);
color: #fff;
border: none;
border-radius: 50%;
box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: all 0.3s ease;
z-index: 99;
}
.back-to-top.visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.back-to-top:hover {
background: var(--primary-dark);
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.hero {
background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/static/images/banner-sm.jpg') no-repeat center center/cover;
color: #fff;
padding: 100px 0 110px;
text-align: center;
position: relative;
min-height: 425px;
display: flex;
align-items: center;
overflow: hidden;
}
.blog-detail-layout {
display: grid;
grid-template-columns: 2.5fr 1.2fr;
gap: 40px;
margin-top: 50px;
margin-bottom: 60px;
}
.article-content {
background: var(--surface);
border-radius: var(--radius);
border: 1px solid var(--border-light);
padding: 40px;
box-shadow: var(--shadow-sm);
}
.article-header {
margin-bottom: 30px;
border-bottom: 1px solid var(--border);
padding-bottom: 20px;
}
.post-meta {
display: flex;
gap: 20px;
font-size: 0.9rem;
color: var(--text-secondary);
margin-bottom: 15px;
flex-wrap: wrap;
}
.post-category-badge {
background: #eff6ff;
padding: 2px 12px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
color: var(--primary);
display: inline-block;
}
.article-body {
font-size: 1.02rem;
color: #1e293b;
}
.article-body img {
width: 100%;
}
.article-body h2 {
font-size: 1.5rem;
font-weight: 700;
margin: 32px 0 16px;
color: #0f172a;
border-left: 5px solid var(--primary);
padding-left: 18px;
}
.article-body p {
margin-bottom: 1.2rem;
line-height: 1.75;
}
.article-body ul, .article-body ol {
margin: 1rem 0 1rem 1.8rem;
}
.article-body li {
margin-bottom: 0.5rem;
}
.highlight-box {
background: #f0f9ff;
border-left: 4px solid var(--primary);
padding: 18px 24px;
margin: 24px 0;
border-radius: 12px;
}
.table-of-contents {
background: #f8fafc;
padding: 18px 24px;
border-radius: 16px;
margin: 28px 0;
border: 1px solid var(--border-light);
}
.table-of-contents ul {
margin: 0;
columns: 2;
column-gap: 30px;
}
@media (min-width: 768px) {
.hero { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/static/images/banner-md.jpg'); }
}
@media (min-width: 1200px) {
.hero { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/static/images/banner-lg.jpg'); }
}
.hero .bg-orb {
position: absolute;
border-radius: 50%;
filter: blur(120px);
opacity: 0.08;
pointer-events: none;
z-index: 1;
}
.hero .bg-orb.orb1 { width: 700px; height: 700px; background: #2563eb; top: -300px; right: -180px; }
.hero .bg-orb.orb2 { width: 500px; height: 500px; background: #3b82f6; bottom: -220px; left: -140px; }
.hero .bg-orb.orb3 { width: 300px; height: 300px; background: #60a5fa; top: 40%; left: 50%; transform: translate(-50%, -50%); opacity: 0.04; }
.hero .container { position: relative; z-index: 2; }
.hero .badge {
display: inline-block;
background: rgba(255, 255, 255, 0.10);
border: 1px solid rgba(255, 255, 255, 0.20);
border-radius: 30px;
padding: 7px 18px;
font-size: 0.85rem;
margin-bottom: 22px;
}
.hero h1 {
font-size: 2rem;
font-weight: 800;
letter-spacing: -0.8px;
margin-bottom: 20px;
max-width: 960px;
margin-left: auto;
margin-right: auto;
}
.hero p {
font-size: 1rem;
color: #cbd5e1;
max-width: 700px;
margin: 0 auto 34px;
}
.btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 14px 30px;
border-radius: 30px;
font-weight: 600;
text-decoration: none;
transition: all var(--transition);
font-size: 0.98rem;
cursor: pointer;
border: none;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 22px rgba(37, 99, 235, 0.35); }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); }
.btn-outline-white { background: transparent; border: 2px solid rgba(255, 255, 255, 0.5); color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.8); }
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; font-weight: 800; color: #0f172a; margin-bottom: 12px; letter-spacing: -0.4px; }
.section-title p { color: #64748b; font-size: 1.08rem; max-width: 620px; margin: 0 auto; }
.cta-banner {
background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
color: #fff; text-align: center; padding: 64px 28px;
border-radius: 20px; margin: 20px 0; position: relative; overflow: hidden;
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 14px; }
.cta-banner p { font-size: 1.1rem; margin-bottom: 26px; opacity: 0.9; }
.contact-form-section { background: #ffffff; }
.contact-container {
display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
background: var(--surface); border-radius: var(--radius);
box-shadow: var(--shadow-lg); overflow: hidden;
border: 1px solid var(--border-light);
}
.contact-info { background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%); padding: 44px 36px; }
.contact-info h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 18px; }
.contact-details { list-style: none; margin-top: 28px; }
.contact-details li { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }
.contact-details li i { width: 36px; height: 36px; background: #eff6ff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); }
.contact-form { padding: 44px 36px; background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.contact-form input, .contact-form textarea {
width: 100%; padding: 14px 18px;
border: 1px solid var(--border); border-radius: var(--radius-xs);
font-size: 0.95rem;
}
.verification-row { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.verification-code-img { cursor: pointer; max-width: 120px; border-radius: 6px; border: 1px solid #e2e8f0; }
footer { background: #0b1120; color: #cbd5e1; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
footer h4 { color: #f1f5f9; margin-bottom: 18px; font-weight: 700; font-size: 0.95rem; }
footer ul { list-style: none; }
footer a { color: #94a3b8; text-decoration: none; font-size: 0.9rem; }
footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; text-align: center; font-size: 0.85rem; }
@media (max-width: 1100px) {
.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
.nav-menu {
display: none;
position: absolute; top: 100%; left: 0; right: 0;
background: #fff; box-shadow: var(--shadow-xl);
flex-direction: column; padding: 20px 24px 28px;
max-height: 80vh; overflow-y: auto;
border-bottom: 1px solid var(--border);
border-radius: 0 0 16px 16px;
}
.nav-menu.show { display: flex; }
.nav-menu > li { width: 100%; border-bottom: 1px solid #f1f5f9; }
.nav-menu a {
padding: 14px 8px; font-size: 1rem; font-weight: 600;
color: #0f172a; white-space: normal;
display: flex; justify-content: space-between;
}
.nav-menu .arrow-icon {
margin-left: auto; font-size: 1.5rem; padding: 4px 8px;
background: #f1f5f9; border-radius: 6px;
}
.dropdown.open > .arrow-icon { background: #e0e7ff; color: var(--primary); }
.dropdown-menu {
position: static; box-shadow: none; opacity: 1; visibility: visible;
max-height: 0; overflow: hidden; transition: max-height 0.35s;
padding: 0 0 0 20px; background: #f8fafc;
}
.dropdown.open > .dropdown-menu { max-height: 400px; padding: 8px 0 8px 20px; }
.hamburger { display: flex; }
.hero { padding: 70px 0 80px; }
.hero h1 { font-size: 2rem; }
.contact-container { grid-template-columns: 1fr; }
.footer-grid { grid-template-columns: 1fr; }
.form-row:not(.verification-row) { grid-template-columns: 1fr; gap: 0; }
}
@media (min-width: 1025px) {
.nav-menu a { font-size: 0.85rem; padding: 8px 14px; }
.nav-cta { padding: 8px 18px !important; font-size: 0.85rem !important; }
.dropdown:hover > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
}
@media (max-width: 480px) {
.hero { padding: 60px 0 70px; min-height: 300px; }
.hero h1 { font-size: 1.6rem; }
.article-body h2 {
font-size: 1.35rem;
padding-left: 14px;
margin: 28px 0 12px;
}
.back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}
@media (max-width: 640px) {
.blog-detail-layout { grid-template-columns: 1fr; gap: 30px; }
.article-content { padding: 28px; }
.table-of-contents ul { columns: 1; }
}
.sidebar { display: flex; flex-direction: column; gap: 36px; }
.sidebar-widget {
background: var(--surface);
border-radius: var(--radius);
border: 1px solid var(--border-light);
padding: 28px 24px;
box-shadow: var(--shadow-sm);
}
.sidebar-widget h3 {
font-size: 1.35rem;
font-weight: 700;
margin-bottom: 18px;
padding-bottom: 10px;
border-bottom: 2px solid var(--primary-light);
display: inline-block;
}
.search-form {
display: flex;
gap: 12px;
margin-top: 8px;
}
.search-form input {
flex: 1;
padding: 12px 16px;
border: 1px solid var(--border);
border-radius: 40px;
font-size: 0.9rem;
}
.search-form button {
background: var(--primary);
border: none;
border-radius: 40px;
padding: 0 20px;
color: white;
cursor: pointer;
}
.category-list, .popular-list { list-style: none; }
.category-list li, .popular-list li { margin-bottom: 12px; }
.category-list a, .popular-list a {
text-decoration: none;
color: #334155;
font-weight: 500;
display: flex;
justify-content: space-between;
transition: color 0.2s;
}
.category-list a:hover, .popular-list a:hover { color: var(--primary); }
.tag-cloud a {
background: #f1f5f9;
padding: 6px 14px;
border-radius: 30px;
font-size: 0.8rem;
color: #334155;
text-decoration: none;
display: inline-block;
margin: 0 6px 8px 0;
}
.tag-cloud a:hover { background: var(--primary); color: #fff; }
.newsletter-input {
width: 100%;
padding: 12px;
border-radius: 40px;
border: 1px solid #e2e8f0;
margin-bottom: 12px;
}
.full-width-btn { width: 100%; justify-content: center; }
.breadcrumb {
padding: 20px 0 0;
font-size: 0.85rem;
color: var(--text-secondary);
}
.breadcrumb a {
color: var(--primary);
text-decoration: none;
transition: color 0.2s;
}
.breadcrumb a:hover {
color: var(--primary-dark);
text-decoration: underline;
}
.breadcrumb .separator {
margin: 0 8px;
color: var(--text-muted);
}
.breadcrumb .current {
color: var(--text-secondary);
font-weight: 500;
}
@media (max-width: 768px) {
.breadcrumb {
font-size: 0.75rem;
padding: 16px 0 0;
}
}