xk/css/style.css

687 lines
11 KiB
CSS
Raw Normal View History

2026-01-21 10:43:20 +08:00
@font-face {
font-family: jw;
src: url("../font/fonteditor.ttf");
font-display: block;
}
.Cover {
position: relative;
overflow: hidden;
height: 100vh;
width: 100%;
}
canvas#cover {
left: 0px;
bottom: -10%;
width: auto;
height: 125%;
position: fixed;
z-index: -5;
margin: -35px;
}
:root {
--primary: #4a3fe0;
--secondary: #6a11cb;
--accent: #8a2be2;
--light: #f8f9fa;
--dark: #212529;
--gray: #6c757d;
--transition: all 0.3s ease;
--shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
--radius: 8px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
color: var(--dark);
line-height: 1.6;
background-color: #fff;
overflow-x: hidden;
}
a {
text-decoration: none;
color: inherit;
}
ul {
list-style: none;
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.btn {
display: inline-block;
padding: 12px 28px;
background: linear-gradient(to right, var(--primary), var(--secondary));
color: white;
border-radius: var(--radius);
font-weight: 600;
transition: var(--transition);
border: none;
cursor: pointer;
}
.btn:hover {
transform: translateY(-3px);
box-shadow: var(--shadow);
}
.btn-outline {
background: transparent;
border: 2px solid var(--primary);
color: var(--primary);
}
.btn-outline:hover {
background: linear-gradient(to right, var(--primary), var(--secondary));
color: white;
}
.section {
padding: 80px 0;
background-color: rgba(255, 255, 255, 0.93);
}
.section-title {
text-align: center;
margin-bottom: 50px;
position: relative;
}
.section-title h2 {
font-size: 2.5rem;
margin-bottom: 15px;
color: var(--dark);
}
.section-title::after {
content: '';
position: absolute;
bottom: -15px;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 4px;
background: linear-gradient(to right, var(--primary), var(--secondary));
border-radius: 2px;
}
/* Header */
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
background-color: rgb(255 255 255);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
transition: var(--transition);
}
header.scrolled {
padding: 10px 0;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
}
.logo img {
height: 50px;
width: auto;
}
.nav-links {
display: flex;
gap: 30px;
}
.nav-links a {
font-weight: 500;
transition: var(--transition);
}
.nav-links a:hover {
color: var(--primary);
}
.hamburger {
display: none;
cursor: pointer;
}
2026-01-21 11:16:51 +08:00
.lang-toggle {
margin-left: 20px;
}
.lang-btn {
padding: 8px 16px;
background: transparent;
color: var(--dark);
border: 2px solid var(--primary);
border-radius: var(--radius);
font-weight: 600;
font-size: 0.9rem;
cursor: pointer;
transition: var(--transition);
display: flex;
align-items: center;
gap: 5px;
}
.lang-btn:hover {
border-color: var(--secondary);
box-shadow: 0 4px 10px rgba(74, 63, 224, 0.2);
}
.lang-option {
transition: var(--transition);
color: rgba(0, 0, 0, 0.4);
cursor: pointer;
}
.lang-option.active {
color: var(--primary);
font-weight: 700;
}
.lang-separator {
color: rgba(0, 0, 0, 0.3);
margin: 0 2px;
}
2026-01-21 10:43:20 +08:00
/* Hero Section */
.hero {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
flex-direction: column;
color: white;
position: relative;
z-index: 1;
}
.hero-content {
position: relative;
z-index: 2;
}
.hero-title {
font-size: 2.5rem;
margin-bottom: 10px;
font-weight: bold;
}
.hero-subtitle {
font-size: 1.2rem;
margin-bottom: 20px;
font-weight: normal;
}
.slogan-zh {
text-align-last: justify;
transform: matrix(0.97, 0, -0.27, 1, 0, 0);
width: 777px;
font-size: 135px;
height: 81px;
line-height: 80px;
margin-top: 75px;
margin-bottom: 210px;
font-family: jw;
color: rgb(229, 181, 7);
letter-spacing: 10px;
text-shadow: rgba(251, 233, 163, 0.7) 0px 0px 4px;
}
/* Features */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.feature-card {
background: white;
border-radius: var(--radius);
padding: 30px;
box-shadow: var(--shadow);
transition: var(--transition);
text-align: center;
}
.feature-card:hover {
transform: translateY(-10px);
}
.feature-icon {
font-size: 2.5rem;
margin-bottom: 20px;
color: var(--primary);
}
.feature-card h3 {
margin-bottom: 15px;
font-size: 1.5rem;
}
/* Services */
.services {
background-color: var(--light);
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.service-card {
background: white;
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
}
.service-card:hover {
transform: translateY(-5px);
}
.service-card {
border-radius: 16px;
overflow: hidden;
background: #fff;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.service-img {
width: 100%;
height: 200px;
overflow: hidden;
}
.service-img img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.service-content {
padding: 20px;
}
.service-content h3 {
margin-bottom: 15px;
font-size: 1.3rem;
}
/* Advantages */
.advantages-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.advantage-card {
display: flex;
align-items: flex-start;
gap: 20px;
}
.advantage-icon {
font-size: 2rem;
color: var(--primary);
flex-shrink: 0;
}
/* Partner Logos */
.partners-grid {
2026-01-21 10:45:00 +08:00
display: flex;
flex-wrap: wrap;
justify-content: center;
2026-01-21 10:43:20 +08:00
gap: 40px;
align-items: center;
}
.partner-logo {
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
background: white;
border-radius: var(--radius);
box-shadow: var(--shadow);
transition: var(--transition);
2026-01-21 10:45:00 +08:00
width: 200px;
2026-01-21 10:43:20 +08:00
height: 150px;
2026-01-21 10:45:00 +08:00
flex-shrink: 0;
2026-01-21 10:43:20 +08:00
}
.partner-logo:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.partner-logo img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
filter: grayscale(100%);
transition: var(--transition);
filter: grayscale(0%);
}
/* Cases */
.cases {
background-color: var(--light);
}
.cases-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.case-card {
position: relative;
border-radius: var(--radius);
overflow: hidden;
height: 250px;
box-shadow: var(--shadow);
}
.case-card video {
width: 100%;
height: 100%;
object-fit: cover;
transition: var(--transition);
}
.case-card:hover video {
transform: scale(1.1);
}
.case-preview {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: var(--transition);
}
.case-card:hover .case-preview {
transform: scale(1.1);
}
/* 播放按钮 */
.play-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 10px;
color: white;
background: rgba(0, 0, 0, 0.6);
border-radius: 50%;
padding: 15px;
cursor: pointer;
transition: background 0.3s;
z-index: 2;
}
.play-button:hover {
background: rgba(0, 0, 0, 0.8);
}
.video-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
z-index: 1000;
justify-content: center;
align-items: center;
}
.video-content {
position: relative;
width: 80vw;
max-width: 960px;
aspect-ratio: 16 / 9;
background: #000;
border-radius: 10px;
overflow: hidden;
}
.video-content video {
width: 100%;
height: 100%;
object-fit: contain;
}
.close-btn {
position: absolute;
top: 10px;
right: 15px;
font-size: 30px;
color: white;
cursor: pointer;
z-index: 10;
}
.case-overlay {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 20px;
background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
color: white;
}
.about-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 50px;
align-items: center;
}
.about-text h2 {
margin-bottom: 20px;
font-size: 2rem;
}
.about-stats {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
margin-top: 30px;
}
.stat {
text-align: center;
}
.stat-number {
font-size: 2.5rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 10px;
}
.about-image img {
width: 100%;
border-radius: var(--radius);
box-shadow: var(--shadow);
}
.contact {
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
color: white;
}
.contact .section-title h2 {
color: white;
}
.contact .section-title::after {
background: white;
}
.contact-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 50px;
}
.contact-info {
display: flex;
flex-direction: column;
gap: 20px;
}
.contact-item {
display: flex;
align-items: center;
gap: 15px;
}
.contact-icon {
font-size: 1.5rem;
}
.qr-code img {
width: 200px;
border-radius: var(--radius);
box-shadow: var(--shadow);
}
.form-group label {
font-weight: 500;
}
/* Footer */
footer {
background-color: var(--dark);
color: white;
padding: 50px 0 20px;
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 40px;
margin-bottom: 40px;
}
.footer-column h3 {
margin-bottom: 20px;
font-size: 1.3rem;
}
.footer-links {
display: flex;
flex-direction: column;
gap: 10px;
}
.footer-links a {
transition: var(--transition);
}
.footer-links a:hover {
color: var(--primary);
}
.social-links {
display: flex;
gap: 15px;
margin-top: 20px;
}
.social-links a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
transition: var(--transition);
}
.social-links a:hover {
background: var(--primary);
}
.copyright {
text-align: center;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
.nav-links {
position: fixed;
top: 80px;
left: -100%;
width: 100%;
height: calc(100vh - 80px);
background: white;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 40px;
transition: var(--transition);
}
.nav-links.active {
left: 0;
}
.hamburger {
display: block;
}
2026-01-21 11:16:51 +08:00
.lang-toggle {
margin-left: 10px;
}
.lang-btn {
padding: 6px 12px;
font-size: 0.85rem;
}
2026-01-21 10:43:20 +08:00
}