/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    position: relative;
    height: 100%;
    overflow: hidden;
}

:root {
    --primary-color: #2D3436;
    --secondary-color: #0984E3;
    --accent-color: #00B894;
    --text-color: #2D3436;
    --light-gray: #F5F6FA;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #6C5CE7 0%, #A8E6CF 100%);
    --gradient-2: linear-gradient(135deg, #FF8B94 0%, #FFD3B6 100%);
    --gradient-3: linear-gradient(135deg, #00B894 0%, #00CEC9 100%);
    --gradient-4: linear-gradient(135deg, #6C5CE7 0%, #A8E6CF 100%);
    --gradient-5: linear-gradient(135deg, #FF8B94 0%, #FFD3B6 100%);
    --transition: all 0.3s ease;
    --enterprise-bg: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --ecommerce-bg: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    --culture-bg: linear-gradient(135deg, #333333 0%, #4a4a4a 100%);
    --public-bg: linear-gradient(135deg, #4a4a4a 0%, #666666 100%);
    --others-bg: linear-gradient(135deg, #666666 0%, #808080 100%);
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav__logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.nav__logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav__logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav__item a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.nav__item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav__item a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* 全屏滚动容器 */
.fullpage-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Section Styles */
.section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 50px;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section:hover::before {
    opacity: 1;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.section__title::before,
.section__title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transform: translateY(-50%);
}

.section__title::before {
    left: -50px;
}

.section__title::after {
    right: -50px;
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.template-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.template-card:hover {
    transform: translateY(-20px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.template-card__image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transform: translateZ(20px);
    width: 100%;
    height: 250px;
}

.template-card__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: var(--transition);
}

.template-card:hover .template-card__image::before {
    opacity: 1;
}

.template-card__content {
    padding: 40px;
    position: relative;
    z-index: 1;
    background: var(--white);
    transform: translateZ(10px);
}

.template-card__content h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

.template-card__content p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 16px;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 60px 50px 20px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer__content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 15px 20px;
    }

    .nav__logo {
        font-size: 24px;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        padding: 80px 40px;
        flex-direction: column;
        align-items: flex-start;
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 1000;
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__toggle {
        display: block;
        z-index: 1001;
    }

    .nav__toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-color);
        margin: 5px 0;
        transition: var(--transition);
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .section {
        padding: 60px 20px;
        min-height: 100vh;
    }

    .section:nth-child(even) {
        clip-path: none;
    }

    .section__title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .template-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .template-card {
        border-radius: 20px;
        clip-path: none;
        width: 100%;
        margin: 0;
        overflow: hidden;
    }

    .template-card:nth-child(even) {
        clip-path: none;
    }

    .template-card__image {
        width: 100%;
        height: 250px;
    }

    .template-card__content {
        padding: 30px;
    }

    .template-card__content h3 {
        font-size: 24px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .footer {
        width: 100%;
        padding: 40px 20px 20px;
        overflow: hidden;
    }

    .footer__content {
        flex-direction: column;
        gap: 20px;
    }

    .footer__social {
        margin: 20px 0;
    }

    .decoration {
        display: none;
    }

    .particles-container {
        width: 100%;
        overflow: hidden;
    }
}

/* 平板适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav {
        padding: 15px 30px;
    }

    .hero__title {
        font-size: 4rem;
    }

    .hero__subtitle {
        font-size: 1.6rem;
    }

    .section {
        width: 100%;
        padding: 100px 30px;
        overflow: hidden;
    }

    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .template-card {
        width: 100%;
        margin: 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes backgroundMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Decoration elements */
.decoration {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.decoration--circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    position: absolute;
    top: -150px;
    right: -150px;
    animation: float 6s ease-in-out infinite;
}

.decoration--square {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    position: absolute;
    bottom: -100px;
    left: -100px;
    transform: rotate(45deg);
    animation: float 8s ease-in-out infinite;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* Theme sections */
#enterprise {
    background: var(--enterprise-bg);
}

#ecommerce {
    background: var(--ecommerce-bg);
}

#culture {
    background: var(--culture-bg);
}

#public {
    background: var(--public-bg);
}

#others {
    background: var(--others-bg);
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    width: 100%;
    text-align: center;
    margin: 0;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* New animation classes */
.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-shine {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shine 3s infinite;
}

/* Particle effect */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    width: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-up linear infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* 主题文字颜色 */
#enterprise .section__title {
    color: #6C5CE7;
    text-shadow: 0 2px 10px rgba(108, 92, 231, 0.2);
}

#ecommerce .section__title {
    color: #FF8B94;
    text-shadow: 0 2px 10px rgba(255, 139, 148, 0.2);
}

#culture .section__title {
    color: #00B894;
    text-shadow: 0 2px 10px rgba(0, 184, 148, 0.2);
}

#public .section__title {
    color: #6C5CE7;
    text-shadow: 0 2px 10px rgba(108, 92, 231, 0.2);
}

#others .section__title {
    color: #FF8B94;
    text-shadow: 0 2px 10px rgba(255, 139, 148, 0.2);
}

/* 滚动指示器 */
.scroll-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-indicator__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator__dot.active {
    background: var(--white);
    transform: scale(1.5);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 0 20px;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__title {
    font-size: 6rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero__title::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s infinite linear;
}

.hero__subtitle {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    animation: fadeInUp 1s ease 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero__button {
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero__button--primary {
    background: var(--white);
    color: var(--primary-color);
}

.hero__button--secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.hero__decoration {
    position: absolute;
    pointer-events: none;
}

.hero__decoration--1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    animation: rotate 20s linear infinite;
}

.hero__decoration--2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    bottom: -100px;
    left: -100px;
    transform: rotate(45deg);
    animation: float 8s ease-in-out infinite alternate;
}

.hero__shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.hero__shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

.hero__shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero__shape:nth-child(2) {
    width: 50px;
    height: 50px;
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.hero__shape:nth-child(3) {
    width: 75px;
    height: 75px;
    bottom: 25%;
    left: 20%;
    animation-delay: 2s;
}

.hero__shape:nth-child(4) {
    width: 60px;
    height: 60px;
    bottom: 30%;
    right: 25%;
    animation-delay: 3s;
}

@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero__title {
        font-size: 3rem;
    }

    .hero__subtitle {
        font-size: 1.4rem;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero__button {
        width: 100%;
        justify-content: center;
    }
}