/**
 * iColorFill - Main Stylesheet
 * 主样式文件
 */

/* ============================================
   Reset & Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Lexend", sans-serif;
    background-color: #002b36;
    color: #fff;
    overflow-x: hidden;
    padding-top: 75px;
}

/* ============================================
   Main Banner
   ============================================ */
.main-banner {
    background-color: #002b36;
    background-image: url("https://www.yudiz.com/codepen/photography-banner/frame.png");
    background-size: cover;
    background-repeat: no-repeat;
    overflow-x: hidden;
    min-height: calc(100vh - 75px);
    width: 100%;
}

.main-banner *::selection {
    background-color: rgba(211, 54, 130, 0.2);
    color: #ffffff;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    min-height: calc(100vh - 75px);
    padding: 60px 180px 60px 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    gap: 60px;
}

.hero-section::before {
    content: "";
    border-radius: 197.5px 0px;
    opacity: 0.4;
    background: #d33682;
    filter: blur(162px);
    height: 35%;
    width: 55%;
    position: absolute;
    top: -40%;
    left: -66%;
    transform: translate(50%, 50%);
    z-index: -1;
}

/* Hero Left */
.hero-left {
    flex: 1;
    max-width: 600px;
}

.hero-left h1 {
    margin: 0;
    color: #fff;
    font-family: "Lexend", sans-serif;
    font-weight: 700;
    font-size: clamp(42px, 8vw, 100px);
    line-height: 0.9;
    text-transform: uppercase;
}

.hero-left h1 .line {
    display: block;
}

.hero-left h1 .highlight {
    color: #d33682;
    display: block;
    min-height: clamp(50px, 10vw, 110px);
}

.hero-subtitle {
    width: 90%;
    margin: 30px 0 0;
    color: #fff;
    font-size: 18px;
    font-weight: normal;
    line-height: 1.8;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

/* CTA Button */
.hero-cta {
    margin: 40px 0 0;
    padding: 0;
    border: 0;
    font-size: 56px;
    line-height: 1;
    color: #f1f1f1;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    font-family: "Lexend", sans-serif;
    font-weight: 300;
    display: inline-flex;
    align-items: center;
    gap: 28px;
    text-decoration: none;
    cursor: pointer;
}

.hero-cta .linktext {
    position: relative;
    display: inline-block;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    padding-bottom: 6px;
}

.hero-cta .linktext::before {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(1);
    transition: transform 250ms ease-in-out;
    transform-origin: 0 0;
}

.hero-cta:hover .linktext::before {
    transform: scaleX(0);
    transform-origin: 100% 100%;
}

.hero-cta .arrow {
    height: 32px;
    width: 32px;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.hero-cta .arrow::before,
.hero-cta .arrow::after {
    position: absolute;
    content: "";
    background-color: #d33682;
    transition: all ease-in-out 0.35s;
    transform-origin: 0 0;
    border-radius: 30px;
}

.hero-cta .arrow::before {
    height: 2px;
    width: 100%;
    top: 0;
    right: 0;
}

.hero-cta .arrow::after {
    width: 2px;
    height: 100%;
    top: 0;
    right: 0;
}

.hero-cta:hover .arrow::before {
    width: 65%;
}

.hero-cta:hover .arrow::after {
    height: 65%;
}

.hero-cta .arrow span {
    background-color: #d33682;
    height: 2px;
    width: 100%;
    display: inline-block;
    transform: rotate(-45deg) translate(-3px, -1px);
    transform-origin: right top;
    border-radius: 30px;
    position: absolute;
    top: 0;
    left: 0;
    transition: all ease-in-out 0.35s;
}

.hero-cta .arrow span::before {
    background-color: #d33682;
    content: "";
    height: 100%;
    width: 15px;
    left: -15px;
    top: 0;
    position: absolute;
}

/* Hero Right */
.hero-right {
    flex: 0 0 auto;
    width: 400px;
    height: 400px;
    position: relative;
    z-index: 1;
}

.hero-right::before {
    content: "";
    border-radius: 197.5px 0px;
    opacity: 0.4;
    background: #d33682;
    filter: blur(112px);
    height: 35%;
    width: 55%;
    position: absolute;
    top: 50%;
    right: 33%;
    transform: translate(50%, -50%);
    z-index: -1;
}

.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: auto;
    z-index: 2;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(211, 54, 130, 0.3);
}

/* Comparison Showcase */
.comparison-showcase {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    z-index: 2;
}

.comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(211, 54, 130, 0.3);
    background: #002b36;
    user-select: none;
    -webkit-user-select: none;
}

.comparison-after,
.comparison-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.comparison-before {
    clip-path: inset(0 50% 0 0);
}

.comparison-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(135deg, #d33682, #FF91B3);
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #d33682, #FF91B3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(211, 54, 130, 0.4);
}

.comparison-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding: 0 8px;
}

.comparison-labels span {
    font-family: "Lexend", sans-serif;
    font-size: 0.9rem;
    color: #93a1a1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(211, 54, 130, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: float linear infinite;
}

.particle:nth-child(odd) {
    background: rgba(135, 206, 235, 0.4);
}

.particle:nth-child(3n) {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes float {
    0% {
        transform: translateX(-100px) translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.bg-line {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 85px;
    z-index: -1;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
}

.bg-line img {
    position: relative;
    flex-shrink: 0;
    animation: 26s linear infinite;
    filter: hue-rotate(280deg) saturate(1.5);
}

.bg-line img:nth-child(1) {
    animation-name: first-text;
}

.bg-line img:nth-child(2) {
    animation-name: second-text;
}

@keyframes first-text {
    50% { transform: translateX(-100%); opacity: 1; }
    50.05% { opacity: 0; }
    50.1% { transform: translateX(100%); opacity: 1; }
    100% { transform: translateX(0%); }
}

@keyframes second-text {
    50% { transform: translateX(-100%); }
    100% { transform: translateX(-200%); }
    0% { transform: translateX(0%); }
}

.bg-dash-circle {
    position: absolute;
    bottom: -35px;
    right: -13px;
    z-index: -1;
    width: 180px;
    aspect-ratio: 1/1;
}

.bg-dash-circle img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    animation: circle-rotate 18s linear infinite;
    filter: hue-rotate(280deg) saturate(1.5);
}

@keyframes circle-rotate {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Inspiration Gallery Section (灵感池)
   ============================================ */
.inspiration-section {
    padding: 100px 30px;
    background-color: #073642;
    position: relative;
    overflow: hidden;
}

.inspiration-section::before {
    content: "";
    border-radius: 197.5px 0px;
    opacity: 0.3;
    background: #d33682;
    filter: blur(140px);
    height: 40%;
    width: 40%;
    position: absolute;
    top: 20%;
    right: -20%;
    z-index: 0;
}

.inspiration-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.inspiration-title {
    color: #fff;
    font-family: "Lexend", sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1;
    margin: 0 0 60px;
    text-transform: uppercase;
}

.inspiration-wrapper {
    overflow: hidden;
}

.inspiration-marquee {
    display: flex;
    animation: scroll 60s linear infinite;
    gap: 20px;
    width: max-content;
}

.inspiration-marquee:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.inspiration-item {
    flex-shrink: 0;
    height: 280px;
    width: fit-content;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.inspiration-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(211, 54, 130, 0.3);
}

.inspiration-item img {
    height: 100%;
    width: auto;
    display: block;
}

.inspiration-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.inspiration-item:hover .inspiration-caption {
    opacity: 1;
}

.inspiration-caption span {
    font-family: "Lexend", sans-serif;
    font-size: 0.85rem;
    color: #fff;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inspiration-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 280px;
    color: #586e75;
    font-family: "Lexend", sans-serif;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    padding: 100px 30px;
    background-color: #002b36;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: "";
    border-radius: 197.5px 0px;
    opacity: 0.4;
    background: #d33682;
    filter: blur(120px);
    height: 50%;
    width: 30%;
    position: absolute;
    top: 50%;
    left: -15%;
    transform: translateY(-50%);
    z-index: 0;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.features-content h2 {
    color: #fff;
    font-family: "Lexend", sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.1;
    margin: 0 0 20px;
}

.features-content h2 .highlight {
    color: #d33682;
}

.features-content .subtitle {
    color: #aaa;
    font-size: 18px;
    line-height: 1.6;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    padding: 25px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d33682, #FF91B3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

.feature-text h3 {
    color: #fff;
    font-family: "Lexend", sans-serif;
    font-size: 18px;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.feature-text p {
    color: #aaa;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-section {
    padding: 100px 30px;
    background-color: #073642;
    position: relative;
    overflow: hidden;
}

.how-section::before {
    content: "";
    border-radius: 197.5px 0px;
    opacity: 0.3;
    background: #d33682;
    filter: blur(140px);
    height: 40%;
    width: 40%;
    position: absolute;
    top: 20%;
    right: -20%;
    z-index: 0;
}

.how-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.how-title {
    color: #fff;
    font-family: "Lexend", sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1;
    margin: 0 0 60px;
    text-transform: uppercase;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: #d33682;
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d33682, #FF91B3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 0 auto 25px;
}

.step-card h3 {
    color: #fff;
    font-family: "Lexend", sans-serif;
    font-size: 20px;
    margin: 0 0 15px;
    text-transform: uppercase;
}

.step-card p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 120px 30px;
    background-color: #002b36;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    border-radius: 197.5px 0px;
    opacity: 0.5;
    background: #d33682;
    filter: blur(180px);
    height: 60%;
    width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    color: #fff;
    font-family: "Lexend", sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 10vw, 120px);
    line-height: 0.9;
    margin: 0 0 30px;
    text-transform: uppercase;
}

.cta-subtitle {
    color: #aaa;
    font-family: "Lexend", sans-serif;
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
}

.cta-button {
    padding: 18px 40px;
    background: linear-gradient(135deg, #d33682, #FF91B3);
    color: #fff;
    text-decoration: none;
    font-family: "Lexend", sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    box-sizing: border-box;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(211, 54, 130, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 16px 38px;
}

.cta-button.secondary:hover {
    background: #fff;
    color: #002b36;
}

/* ============================================
   Responsive
   ============================================ */
@media screen and (max-width: 1199px) {
    .hero-section {
        padding: 40px 40px 40px 60px;
        gap: 40px;
    }
    .hero-right {
        width: 350px;
        height: 350px;
    }
    .bg-dash-circle {
        width: 130px;
    }
    .features-container {
        gap: 40px;
    }
    .how-steps {
        gap: 25px;
    }
    .inspiration-item {
        height: 220px;
    }
}

@media screen and (max-width: 991px) {
    .features-container {
        grid-template-columns: 1fr;
    }
    .how-steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 767px) {
    body {
        padding-top: 65px;
    }
    .hero-section {
        flex-direction: column;
        padding: 40px 30px;
        min-height: auto;
        gap: 40px;
    }
    .hero-left {
        max-width: 100%;
        text-align: center;
    }
    .hero-subtitle {
        width: 100%;
        font-size: 16px;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-right {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    .comparison-showcase {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
    }
    .bg-dash-circle {
        width: 80px;
    }
    .features-section,
    .how-section,
    .inspiration-section,
    .cta-section {
        padding: 60px 16px;
    }
    .inspiration-item {
        height: 180px;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-button {
        width: 100%;
        max-width: 280px;
    }
}
