Anne-Charlotte's picture
Update style.css
5c95903 verified
raw
history blame
8.24 kB
:root {
--bg-primary: #F6F6F8;
--bg-secondary: #ffffff;
--bg-card: #ffffff;
--text-primary: #333333;
--text-secondary: #86868B;
--accent-orange: #FF9D00;
--accent-yellow: #FFD21E;
--accent-blue: #3BB0D1;
--accent-cyan: #2E4787;
--accent-purple: #8b5cf6;
--border-color: #E0E0E0;
--radius: 0.75rem;
--hover-bg: rgba(59, 130, 246, 0.1);
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 0px 5px rgba(0, 0, 0, 0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background-color: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 0 1.5rem;
}
/* Header */
.header {
border-bottom: 1px solid var(--border-color);
background: var(--bg-primary);
backdrop-filter: blur(10px);
}
.header-content {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.5rem 0;
flex-wrap: wrap;
gap: 1rem;
}
.header-left {
display: flex;
align-items: center;
gap: 1.5rem;
}
.robot-icon {
height: 64px;
width: 64px;
object-fit: contain;
}
.title {
font-size: 2rem;
font-weight: bold;
background: var(--text-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin: 0;
}
.subtitle {
color: var(--text-secondary);
font-size: 1.125rem;
margin: 0;
}
.steps-badge {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1.5rem;
background: rgba(59, 130, 246, 0.1);
border: 1px solid rgba(59, 130, 246, 0.3);
border-radius: 12px;
}
.steps-badge .icon {
color: var(--accent-blue);
}
.steps-text {
font-size: 1.125rem;
font-weight: 600;
color: var(--accent-blue);
}
/* Main Content */
.main-content {
padding: 3rem 0;
}
/* Introduction */
.intro-section {
text-align: center;
margin-bottom: 3rem;
}
.intro-title {
font-size: 2.5rem;
font-weight: bold;
background: var(--text-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 1rem;
}
.intro-text {
font-size: 1.25rem;
color: var(--text-secondary);
max-width: 800px;
margin: 0 auto;
}
/* Carousel */
.carousel {
max-width: 1200px;
margin: 0 auto;
position: relative;
background: var(--bg-card);
border-radius: 16px;
overflow: hidden;
box-shadow: var(--shadow-lg);
border: 1px solid var(--border-color);
}
.step-counter {
position: absolute;
top: 1.5rem;
left: 1.5rem;
z-index: 10;
background: var(--bg-secondary);
backdrop-filter: blur(10px);
padding: 0.75rem 1.5rem;
border-radius: 12px;
}
.step-counter-text {
font-size: 1.5rem;
font-weight: bold;
color: var(--text-primary);
}
.image-container {
aspect-ratio: 16/9;
background: #ffffff;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.step-image {
width: 100%;
height: 100%;
object-fit: contain;
transition: opacity 0.5s ease-out;
}
.placeholder {
text-align: center;
padding: 3rem;
}
.placeholder-icon {
width: 96px;
height: 96px;
margin: 0 auto 1.5rem;
border-radius: 50%;
background: rgba(154, 160, 168, 0.3);
display: flex;
align-items: center;
justify-content: center;
}
.placeholder-icon span {
font-size: 3rem;
font-weight: bold;
color: var(--text-secondary);
}
.placeholder-text {
font-size: 1.5rem;
color: var(--text-secondary);
}
/* Controls */
.controls {
padding: 2rem;
background: var(--bg-card);
border-top: 1px solid var(--border-color);
}
.controls-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}
/* Buttons */
.btn {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 2rem;
font-size: 1.125rem;
font-weight: 500;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
font-family: inherit;
}
.btn-secondary {
background: var(--bg-secondary);
color: var(--text-secondary);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover:not(:disabled) {
background: var(--bg-secondary);
border-color: var(--bg-secondary);
}
.btn-secondary .icon-left {
transition: transform 0.3s ease;
}
.btn-secondary:hover:not(:disabled) .icon-left {
transform: translateX(-4px);
}
.btn-primary {
background: var(--bg-secondary);
color: var(--accent-orange);
border: 1px solid var(--accent-orange);
}
.btn-primary:hover:not(:disabled) {
background: var(--bg-secondary);
border-color: var(--accent-orange);
box-shadow: 0 0 5px var(--accent-orange, 0.01);
}
.btn-primary .icon-right {
transition: transform 0.3s ease;
}
.btn-primary:hover:not(:disabled) .icon-right {
transform: translateX(4px);
}
.btn:disabled {
opacity: 0.3;
cursor: not-allowed;
}
/* Step Indicators */
.indicators {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
overflow-x: auto;
padding: 0.5rem 1rem;
}
.indicator {
height: 12px;
border-radius: 9999px;
transition: all 0.3s ease;
cursor: pointer;
border: none;
padding: 0;
}
.indicator:not(.active) {
width: 12px;
background: var(--text-secondary);
opacity: 0.3;
}
.indicator:not(.active):hover {
background: var(--text-secondary);
opacity: 0.5;
}
.indicator.active {
width: 48px;
background: var(--accent-orange);
box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}
/* Progress Bar */
.progress-bar {
width: 100%;
background: var(--bg-secondary);
border-radius: 9999px;
height: 8px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(to right, var(--accent-yellow), var(--accent-orange));
transition: width 0.5s ease-out;
border-radius: 9999px;
}
/* Video Section */
.video-section {
margin-top: 3rem;
margin-right: 4.5rem;
margin-left: 4.5rem;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
align-items: start;
}
.video-wrapper {
aspect-ratio: 16/9;
}
.video-wrapper iframe {
width: 100%;
height: 100%;
border-radius: var(--radius);
box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.3);
}
.video-text h2 {
font-size: 1.875rem;
font-weight: 700;
margin-bottom: 0.75rem;
color: var(--foreground);
}
.video-description {
color: var(--muted-foreground);
margin-bottom: 1.5rem;
}
.tips-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.tip-item {
display: flex;
align-items: flex-start;
gap: 0.75rem;
}
.tip-icon {
font-size: 1.5rem;
}
.tip-item h4 {
font-weight: 600;
color: var(--foreground);
margin-bottom: 0.25rem;
}
.tip-item p {
font-size: 0.875rem;
color: var(--muted-foreground);
}
/* Footer */
.footer {
border-top: 1px solid var(--border-color);
margin-top: 5rem;
background: var(--bg-secondary);
}
.footer a {
color: var(--text-primary);
text-decoration: none;
transition: text-decoration 0.2s;
}
.footer a:hover {
color: var(--accent-orange);
text-decoration: underline;
}
.footer-text {
text-align: center;
padding: 2rem 0;
color: var(--text-secondary);
}
/* Responsive */
@media (max-width: 768px) {
.title {
font-size: 1.5rem;
}
.intro-title {
font-size: 1.75rem;
}
.controls-top {
flex-direction: column;
}
.indicators {
order: 3;
width: 100%;
}
.btn {
width: 100%;
justify-content: center;
}
.video-section {
grid-template-columns: 1fr;
margin-top: 3rem;
margin-right: 0rem;
margin-left: 0rem;
}
}