Files
ITStudioMainSite/assets/css/front-page.css
T
2026-03-01 23:39:08 +08:00

366 lines
6.7 KiB
CSS

/* =========================================
Front Page - Minimal Landing Layout
========================================= */
.home-landing {
background-color: var(--bg-body);
}
.landing-hero {
position: relative;
min-height: clamp(420px, 68vh, 700px);
display: flex;
align-items: center;
text-align: center;
color: var(--hero-fg);
isolation: isolate;
overflow: hidden;
--hero-fg: #1c2430;
--hero-subtitle: rgba(28, 36, 48, 0.86);
--hero-title-shadow: rgba(24, 36, 58, 0.14);
--hero-btn-border: rgba(30, 42, 59, 0.52);
--hero-btn-bg: rgba(255, 255, 255, 0.42);
--hero-btn-hover-bg: rgba(255, 255, 255, 0.65);
--hero-overlay-highlight: rgba(255, 255, 255, 0.45);
--hero-overlay-top: rgba(248, 251, 255, 0.24);
--hero-overlay-bottom: rgba(206, 220, 243, 0.2);
}
[data-theme="dark"] .landing-hero {
--hero-fg: #ffffff;
--hero-subtitle: rgba(255, 255, 255, 0.92);
--hero-title-shadow: rgba(0, 0, 0, 0.34);
--hero-btn-border: rgba(255, 255, 255, 0.86);
--hero-btn-bg: rgba(255, 255, 255, 0.08);
--hero-btn-hover-bg: rgba(255, 255, 255, 0.23);
--hero-overlay-highlight: rgba(255, 255, 255, 0.16);
--hero-overlay-top: rgba(13, 18, 27, 0.14);
--hero-overlay-bottom: rgba(12, 18, 28, 0.52);
}
.landing-hero-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
z-index: 0;
}
.landing-hero::before {
content: "";
position: absolute;
inset: 0;
z-index: 1;
pointer-events: none;
background:
radial-gradient(circle at 72% 18%, var(--hero-overlay-highlight), rgba(255, 255, 255, 0) 36%),
linear-gradient(180deg, var(--hero-overlay-top), var(--hero-overlay-bottom));
}
.landing-hero .container {
position: relative;
z-index: 2;
}
.landing-hero-content {
max-width: 880px;
margin: 0 auto;
padding: 56px 0;
}
.landing-hero-title {
margin: 0 0 18px;
font-size: clamp(2.4rem, 7vw, 4.4rem);
line-height: 1.12;
letter-spacing: 0.02em;
font-weight: 700;
text-shadow: 0 4px 18px var(--hero-title-shadow);
}
.landing-hero-subtitle {
margin: 0;
font-size: clamp(1.1rem, 2.6vw, 1.9rem);
color: var(--hero-subtitle);
}
.landing-hero-btn {
display: inline-flex;
align-items: center;
justify-content: center;
margin-top: 30px;
padding: 0 30px;
min-height: 48px;
border: 1px solid var(--hero-btn-border);
border-radius: var(--radius-sm);
color: var(--hero-fg);
background-color: var(--hero-btn-bg);
backdrop-filter: blur(1px);
font-size: 1.05rem;
font-weight: 600;
transition: all var(--duration-fast);
}
.landing-hero-btn:hover {
background-color: var(--hero-btn-hover-bg);
border-color: var(--hero-fg);
}
.services-section {
padding: 24px 0 14px;
}
.services-provided h2,
.landing-feed-head h2 {
margin: 0 0 12px;
font-size: 1.15rem;
color: var(--text-primary);
display: flex;
align-items: center;
}
.services-provided h2::before,
.landing-feed-head h2::before {
content: "#";
margin-right: 8px;
color: var(--color-primary);
font-family: var(--font-mono);
font-weight: 700;
}
.services-grid-box {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 18px;
}
.service-item {
min-height: 170px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 20px 14px;
border: none;
border-radius: 0;
background-color: transparent;
color: var(--text-primary);
transition: none;
}
.service-icon {
margin-bottom: 14px;
color: var(--color-primary);
}
.service-icon svg {
width: 78px;
height: 78px;
display: block;
}
.service-item span {
display: block;
font-size: 1.08rem;
font-weight: 600;
color: var(--text-primary);
}
.landing-updates {
padding: 16px 0 58px;
}
.landing-updates-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}
.landing-feed-box {
border: none;
border-radius: 0;
background-color: transparent;
overflow: visible;
}
.landing-feed-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 0 0 12px;
}
.landing-feed-head h2 {
margin: 0;
}
.landing-feed-head a {
font-size: 0.94rem;
font-weight: 600;
color: var(--text-secondary);
white-space: nowrap;
}
.landing-feed-head a::after {
content: " ->";
font-family: var(--font-mono);
}
.landing-feed-head a:hover {
color: var(--color-primary);
}
.landing-feed {
margin: 0;
padding: 0;
list-style: none;
}
.landing-feed-item {
padding: 14px 0 16px;
border-bottom: 1px solid var(--border-muted);
}
.landing-feed-item:last-child {
border-bottom: none;
padding-bottom: 0;
}
.landing-feed-title {
margin: 0;
display: flex;
align-items: flex-start;
gap: 10px;
}
.landing-feed-title::before {
content: "";
width: 8px;
height: 8px;
margin-top: 0.54em;
border-radius: 2px;
background: var(--color-primary);
flex-shrink: 0;
opacity: 0.9;
}
.landing-feed-link {
display: block;
min-width: 0;
font-size: clamp(1.1rem, 1.2vw + 0.82rem, 1.45rem);
line-height: 1.36;
font-weight: 600;
color: var(--text-primary);
overflow-wrap: anywhere;
}
.landing-feed-link:hover {
color: var(--color-primary);
}
.landing-feed-meta {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
margin: 8px 0 0 18px;
font-size: 0.9rem;
color: var(--text-secondary);
}
.landing-feed-author {
font-weight: 500;
}
.landing-feed-meta time {
font-family: var(--font-mono);
font-size: 0.84rem;
color: var(--text-secondary);
}
.landing-feed-meta time::before {
content: "/";
margin-right: 8px;
color: var(--border-default);
}
.landing-feed-excerpt {
margin: 8px 0 0 18px;
font-size: 0.98rem;
line-height: 1.66;
color: var(--text-secondary);
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
.landing-feed-empty {
padding: 14px 0;
color: var(--text-secondary);
}
@media (max-width: 1060px) {
.services-grid-box {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 820px) {
.landing-updates-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 680px) {
.landing-hero {
min-height: 370px;
}
.landing-hero-content {
padding: 44px 0;
}
.landing-hero-btn {
min-height: 44px;
padding: 0 24px;
}
.service-item {
min-height: 132px;
padding: 12px 8px;
}
.service-icon {
margin-bottom: 8px;
}
.service-icon svg {
width: 58px;
height: 58px;
}
.service-item span {
font-size: 0.95rem;
}
.landing-feed-head {
padding-bottom: 10px;
}
.landing-feed-link {
font-size: 1.08rem;
}
.landing-feed-meta,
.landing-feed-excerpt {
margin-left: 14px;
}
.landing-feed-excerpt {
-webkit-line-clamp: 2;
}
}