yk-web/src/styles/theme.css
2026-04-30 11:04:48 +08:00

978 lines
17 KiB
CSS

:root {
--brand: #ff8a00;
--brand-dark: #ea7600;
--brand-soft: #fff2df;
--brand-soft-2: #ffe4bf;
--text: #202530;
--muted: #687080;
--line: rgba(255, 138, 0, 0.16);
--card: #ffffff;
--bg: #fffdf9;
--warm: #fff7ec;
--shadow: 0 18px 50px rgba(218, 112, 0, 0.12);
--shadow-sm: 0 10px 28px rgba(31, 35, 44, 0.08);
--radius-xl: 30px;
--radius-lg: 22px;
--radius-md: 16px;
--container: 1180px;
font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
color: var(--text);
background: var(--bg);
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
background:
radial-gradient(circle at 14% 8%, rgba(255, 138, 0, 0.10), transparent 28%),
radial-gradient(circle at 88% 20%, rgba(255, 196, 102, 0.16), transparent 32%),
linear-gradient(180deg, #fffaf2 0%, #ffffff 38%, #fffdf9 100%);
color: var(--text);
}
a {
color: inherit;
text-decoration: none;
}
button {
font: inherit;
}
.container {
width: min(var(--container), calc(100% - 48px));
margin: 0 auto;
}
.site-shell {
min-height: 100vh;
overflow: hidden;
}
.site-header {
position: sticky;
top: 0;
z-index: 50;
background: rgba(255, 255, 255, 0.88);
backdrop-filter: blur(18px);
border-bottom: 1px solid rgba(255, 138, 0, 0.08);
}
.header-inner {
height: 86px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 36px;
}
.brand {
display: inline-flex;
align-items: center;
gap: 12px;
min-width: 210px;
}
.brand-logo {
width: 52px;
height: 52px;
border-radius: 14px;
object-fit: contain;
box-shadow: 0 10px 22px rgba(255, 138, 0, 0.16);
}
.brand-copy,
.footer-brand span {
display: grid;
line-height: 1.1;
}
.brand-copy strong,
.footer-brand strong {
font-size: 25px;
letter-spacing: 0.04em;
}
.brand-copy em,
.footer-brand em {
margin-top: 7px;
color: var(--muted);
font-style: normal;
font-size: 12px;
}
.nav-links {
display: flex;
align-items: center;
gap: clamp(22px, 3.4vw, 58px);
font-size: 16px;
color: #252a35;
}
.nav-toggle {
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 5px;
width: 44px;
height: 44px;
border: 1px solid rgba(255, 138, 0, 0.18);
border-radius: 12px;
background: #fff;
cursor: pointer;
}
.nav-toggle span {
display: block;
width: 20px;
height: 2px;
border-radius: 999px;
background: var(--brand);
}
.nav-link {
position: relative;
padding: 31px 0 28px;
white-space: nowrap;
transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link.active {
color: var(--brand);
}
.nav-link.active::after {
content: "";
position: absolute;
left: 50%;
bottom: 16px;
width: 32px;
height: 4px;
border-radius: 999px;
background: linear-gradient(90deg, var(--brand), #ffb154);
transform: translateX(-50%);
}
.hero-section {
position: relative;
padding: 64px 0 84px;
background:
linear-gradient(105deg, rgba(255, 255, 255, 0.96), rgba(255, 237, 210, 0.78) 52%, rgba(255, 255, 255, 0.94)),
radial-gradient(circle at 68% 40%, rgba(255, 138, 0, 0.16), transparent 28%);
overflow: hidden;
}
.hero-section::after {
content: "";
position: absolute;
right: -180px;
bottom: -190px;
width: 650px;
height: 360px;
border-radius: 50%;
border: 24px solid rgba(255, 138, 0, 0.26);
transform: rotate(-12deg);
}
.hero-bg-orb {
position: absolute;
border-radius: 999px;
background: linear-gradient(135deg, rgba(255, 138, 0, 0.28), rgba(255, 255, 255, 0.1));
filter: blur(2px);
}
.hero-bg-orb--left {
width: 110px;
height: 110px;
left: 48%;
top: 35%;
}
.hero-bg-orb--right {
width: 180px;
height: 180px;
right: 8%;
top: 16%;
opacity: 0.32;
}
.hero-grid {
position: relative;
z-index: 2;
display: grid;
grid-template-columns: 1.02fr 0.98fr;
align-items: center;
gap: 52px;
}
.hero-copy {
max-width: 620px;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 8px;
margin: 0 0 14px;
color: var(--brand-dark);
font-weight: 700;
letter-spacing: 0.08em;
}
.eyebrow::before {
content: "";
width: 22px;
height: 3px;
border-radius: 999px;
background: var(--brand);
}
.hero-copy h1 {
margin: 0;
font-size: clamp(38px, 4.5vw, 58px);
line-height: 1.22;
letter-spacing: -0.04em;
color: #171b23;
}
.hero-badge {
display: inline-flex;
align-items: center;
margin-top: 24px;
padding: 13px 34px;
border-radius: 999px;
background: linear-gradient(90deg, var(--brand), #ffad39);
color: #fff;
font-size: 24px;
font-weight: 800;
box-shadow: 0 16px 34px rgba(255, 138, 0, 0.24);
}
.glass-card {
background: rgba(255, 255, 255, 0.76);
border: 1px solid rgba(255, 255, 255, 0.82);
box-shadow: var(--shadow);
backdrop-filter: blur(18px);
}
.intro-card {
margin-top: 32px;
padding: 26px 30px;
border-radius: 20px;
}
.intro-card p {
margin: 0;
color: #424956;
font-size: 17px;
line-height: 2.05;
}
.hero-visual {
position: relative;
min-height: 458px;
display: grid;
place-items: center;
}
.hero-visual img {
width: min(100%, 620px);
height: auto;
display: block;
border-radius: 42px;
filter: drop-shadow(0 28px 56px rgba(255, 138, 0, 0.14));
}
.float-card {
position: absolute;
display: grid;
gap: 4px;
padding: 14px 18px;
border-radius: 18px;
background: rgba(255, 255, 255, 0.74);
border: 1px solid rgba(255, 255, 255, 0.88);
box-shadow: var(--shadow-sm);
backdrop-filter: blur(16px);
}
.float-card span {
color: var(--muted);
font-size: 12px;
}
.float-card strong {
color: var(--brand);
font-size: 20px;
}
.float-card--heart {
top: 62px;
left: 34px;
}
.float-card--data {
right: 28px;
bottom: 68px;
}
.page-section {
padding: 70px 0;
background: #fff;
}
.page-section--compact {
padding-top: 44px;
}
.section-title {
display: flex;
align-items: center;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
margin-bottom: 42px;
text-align: center;
}
.section-title h2 {
margin: 0;
font-size: clamp(28px, 3vw, 40px);
letter-spacing: -0.03em;
}
.section-title p {
flex-basis: 100%;
margin: 0;
color: var(--muted);
}
.title-dots {
display: inline-flex;
gap: 8px;
}
.title-dots i {
display: block;
width: 9px;
height: 9px;
border-radius: 999px;
background: var(--brand);
box-shadow: 16px 0 0 rgba(255, 138, 0, 0.42);
}
.feature-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 28px;
}
.feature-card {
overflow: hidden;
border-radius: 18px;
background: #fff;
box-shadow: var(--shadow-sm);
border: 1px solid rgba(255, 138, 0, 0.10);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover,
.solution-card:hover,
.case-card:hover {
transform: translateY(-4px);
box-shadow: 0 20px 46px rgba(31, 35, 44, 0.10);
}
.feature-head {
position: relative;
display: grid;
place-items: center;
gap: 12px;
padding: 28px 20px 24px;
color: #fff;
background: linear-gradient(180deg, var(--brand), #ff7900);
}
.feature-head::after {
content: "";
position: absolute;
inset: auto -18px -22px -18px;
height: 48px;
border-radius: 50% 50% 0 0;
background: #fff;
opacity: 0.12;
}
.feature-icon {
position: relative;
z-index: 1;
width: 72px;
height: 72px;
border-radius: 999px;
display: grid;
place-items: center;
color: var(--brand);
background: #fff;
}
.feature-head h3 {
position: relative;
z-index: 1;
margin: 0;
font-size: 21px;
}
.feature-list {
list-style: none;
display: grid;
gap: 12px;
margin: 0;
padding: 22px 18px 24px;
background: linear-gradient(180deg, #fff, #fffaf5);
}
.feature-list li {
display: flex;
align-items: center;
gap: 9px;
min-height: 36px;
padding: 8px 13px;
border-radius: 10px;
background: linear-gradient(180deg, #fff, #fff5ec);
color: #535b68;
font-size: 14px;
box-shadow: inset 0 0 0 1px rgba(255, 138, 0, 0.10);
}
.check-dot {
display: inline-grid;
place-items: center;
flex: 0 0 auto;
width: 16px;
height: 16px;
border-radius: 50%;
color: #fff;
background: var(--brand);
font-size: 10px;
font-weight: 800;
}
.solution-section {
background: linear-gradient(180deg, #fff, #fffaf4 42%, #fff);
}
.solution-tabs {
position: relative;
display: grid;
grid-template-columns: repeat(3, 1fr);
width: min(760px, 100%);
min-height: 58px;
margin: 0 auto 28px;
padding: 6px;
border-radius: 15px;
background: #fff;
box-shadow: var(--shadow-sm);
border: 1px solid rgba(255, 138, 0, 0.12);
}
.solution-tab {
position: relative;
z-index: 2;
border: 0;
background: transparent;
color: #4e5664;
font-weight: 800;
cursor: pointer;
border-radius: 12px;
transition: color 0.2s ease;
}
.solution-tab.active {
color: #fff;
}
.tab-indicator {
position: absolute;
z-index: 1;
left: 6px;
top: 6px;
width: calc((100% - 12px) / 3);
height: calc(100% - 12px);
border-radius: 12px;
background: linear-gradient(90deg, var(--brand), #ff9d22);
box-shadow: 0 12px 24px rgba(255, 138, 0, 0.24);
transition: transform 0.26s ease;
}
.solution-grid {
display: grid;
grid-template-columns: 1fr;
width: min(760px, 100%);
margin: 0 auto;
}
.solution-card {
min-height: 286px;
padding: 27px 24px 22px;
border-radius: 20px;
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(255, 138, 0, 0.11);
box-shadow: var(--shadow-sm);
transition: all 0.22s ease;
}
.solution-card.active {
border-color: rgba(255, 138, 0, 0.32);
box-shadow: 0 22px 58px rgba(255, 138, 0, 0.16);
}
.solution-kicker {
display: inline-flex;
margin-bottom: 10px;
color: var(--brand);
font-size: 13px;
font-weight: 800;
}
.solution-card h3 {
margin: 0 0 14px;
font-size: 21px;
}
.solution-points {
margin: 0;
padding-left: 20px;
color: #424956;
line-height: 1.9;
}
.solution-personal-text {
margin: 0 0 40px;
color: #424956;
line-height: 1.9;
}
.solution-qr-row {
margin-top: 18px;
display: flex;
align-items: end;
justify-content: space-between;
gap: 20px;
color: #4e5664;
font-size: 14px;
}
.qr-wrap {
display: grid;
justify-items: center;
gap: 8px;
}
.qr-fake {
position: relative;
width: 94px;
height: 94px;
border: 7px solid #fff;
background:
linear-gradient(90deg, #111 10px, transparent 10px 16px, #111 16px 22px, transparent 22px 31px, #111 31px 38px, transparent 38px 47px, #111 47px 54px, transparent 54px 64px, #111 64px 72px, transparent 72px),
linear-gradient(0deg, transparent 8px, #111 8px 14px, transparent 14px 23px, #111 23px 30px, transparent 30px 39px, #111 39px 45px, transparent 45px 59px, #111 59px 66px, transparent 66px),
#fff;
background-blend-mode: multiply;
box-shadow: inset 0 0 0 1px #111, 0 6px 14px rgba(0,0,0,.08);
}
.qr-corner {
position: absolute;
width: 26px;
height: 26px;
border: 5px solid #111;
background: #fff;
}
.qr-corner::after {
content: "";
position: absolute;
inset: 5px;
background: #111;
}
.qr-corner.tl { left: 6px; top: 6px; }
.qr-corner.tr { right: 6px; top: 6px; }
.qr-corner.bl { left: 6px; bottom: 6px; }
.qr-label {
max-width: 118px;
margin: 0;
color: #66707d;
font-size: 12px;
line-height: 1.3;
text-align: center;
}
.qr-wrap--small .qr-fake {
width: 78px;
height: 78px;
border-width: 6px;
}
.qr-wrap--small .qr-label {
display: none;
}
.case-section {
background: #fff;
}
.case-layout {
display: grid;
grid-template-columns: 170px 1fr;
gap: 46px;
align-items: start;
}
.case-filter {
display: grid;
gap: 15px;
}
.case-filter-btn {
min-height: 54px;
padding: 0 18px;
border-radius: 12px;
border: 1px solid rgba(255, 138, 0, 0.18);
background: #fff;
color: #313843;
font-size: 16px;
font-weight: 800;
cursor: pointer;
transition: all 0.2s ease;
}
.case-filter-btn.active,
.case-filter-btn:hover {
border-color: transparent;
background: linear-gradient(90deg, var(--brand), #ff9d22);
color: #fff;
box-shadow: 0 12px 24px rgba(255, 138, 0, 0.22);
}
.case-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
}
.case-card {
min-height: 86px;
display: flex;
align-items: center;
gap: 14px;
padding: 16px 18px;
border: 1px solid rgba(31, 35, 44, 0.07);
border-radius: 14px;
background: #fff;
box-shadow: 0 8px 26px rgba(31, 35, 44, 0.05);
transition: all 0.2s ease;
}
.case-logo {
flex: 0 0 auto;
width: 48px;
height: 48px;
display: grid;
place-items: center;
border-radius: 14px;
color: #fff;
font-weight: 900;
font-size: 18px;
}
.case-logo--blue { background: linear-gradient(135deg, #2e6bd4, #153d93); }
.case-logo--orange { background: linear-gradient(135deg, var(--brand), #ffb24b); }
.case-logo--red { background: linear-gradient(135deg, #e63e31, #bd1f18); }
.case-logo--cyan { background: linear-gradient(135deg, #26a4e8, #0874b8); }
.case-logo--green { background: linear-gradient(135deg, #10a774, #087d56); }
.case-logo--gray { background: linear-gradient(135deg, #b6bdc7, #88919f); }
.case-card p {
margin: 0;
color: #2f3540;
line-height: 1.45;
white-space: pre-line;
font-size: 14px;
}
.contact-section {
background: linear-gradient(180deg, #fff, #fff7ec);
}
.contact-card {
width: min(960px, 100%);
margin: 0 auto;
padding: 34px 40px;
border-radius: 24px;
background: rgba(255, 255, 255, 0.86);
border: 1px solid rgba(255, 138, 0, 0.15);
box-shadow: var(--shadow);
}
.address-row {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 8px;
font-size: 20px;
margin-bottom: 28px;
}
.address-icon {
display: inline-grid;
place-items: center;
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--brand);
color: #fff;
}
.contact-manager-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
}
.manager-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
padding: 22px 26px;
border-radius: 18px;
background: #fff;
box-shadow: var(--shadow-sm);
}
.manager-copy {
display: flex;
align-items: center;
gap: 14px;
}
.manager-copy p {
margin: 0;
color: #3d4552;
line-height: 1.7;
}
.manager-icon {
display: grid;
place-items: center;
width: 42px;
height: 42px;
border-radius: 50%;
background: var(--brand-soft);
color: var(--brand);
font-size: 20px;
}
.site-footer {
background: #f6f7f9;
border-top: 1px solid rgba(31, 35, 44, 0.06);
}
.footer-inner {
min-height: 92px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
color: #8a929f;
font-size: 14px;
}
.footer-brand {
display: inline-flex;
align-items: center;
gap: 10px;
color: var(--text);
}
.footer-brand img {
width: 44px;
height: 44px;
border-radius: 12px;
}
.footer-brand strong {
font-size: 18px;
}
@media (max-width: 1100px) {
.nav-links {
gap: 20px;
font-size: 14px;
}
.hero-grid {
grid-template-columns: 1fr;
}
.hero-copy {
max-width: none;
}
.feature-grid {
grid-template-columns: repeat(2, 1fr);
}
.case-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 860px) {
.container {
width: min(100% - 28px, var(--container));
}
.site-header {
position: static;
}
.header-inner {
height: auto;
padding: 16px 0;
flex-wrap: wrap;
gap: 12px;
}
.brand {
min-width: 0;
}
.nav-toggle {
display: inline-flex;
margin-left: auto;
}
.nav-links {
width: 100%;
display: none;
padding: 6px;
border-radius: 15px;
background: #fff;
border: 1px solid rgba(255, 138, 0, 0.12);
box-shadow: var(--shadow-sm);
}
.nav-links.open {
display: grid;
gap: 2px;
}
.nav-link {
padding: 12px 14px;
border-radius: 10px;
}
.nav-link.active::after {
left: 14px;
bottom: 8px;
width: 22px;
transform: none;
}
.hero-section {
padding: 44px 0 60px;
}
.hero-badge {
font-size: 18px;
padding: 11px 22px;
}
.intro-card {
padding: 20px;
}
.intro-card p {
font-size: 15px;
}
.hero-visual {
min-height: auto;
}
.float-card {
display: none;
}
.feature-grid,
.contact-manager-grid {
grid-template-columns: 1fr;
}
.solution-tabs {
grid-template-columns: repeat(3, 1fr);
min-height: 50px;
padding: 5px;
}
.solution-tab {
min-height: 40px;
padding: 0 6px;
font-size: 13px;
line-height: 1.25;
}
.tab-indicator {
left: 5px;
top: 5px;
width: calc((100% - 10px) / 3);
height: calc(100% - 10px);
}
.case-layout {
grid-template-columns: 1fr;
gap: 22px;
}
.case-filter {
display: flex;
overflow-x: auto;
padding-bottom: 4px;
}
.case-filter-btn {
white-space: nowrap;
min-width: 136px;
}
.contact-card {
padding: 24px 18px;
}
.manager-card {
align-items: flex-start;
}
.footer-inner {
flex-direction: column;
align-items: flex-start;
padding: 24px 0;
}
}
@media (max-width: 540px) {
.brand-copy strong {
font-size: 22px;
}
.brand-logo {
width: 46px;
height: 46px;
}
.hero-copy h1 {
font-size: 31px;
}
.section-title {
gap: 12px;
margin-bottom: 28px;
}
.title-dots {
display: none;
}
.case-grid {
grid-template-columns: 1fr;
}
.solution-qr-row,
.manager-card {
flex-direction: column;
align-items: flex-start;
}
.address-row {
justify-content: flex-start;
font-size: 17px;
}
}