/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 20px;
}

/* Header & Navigation */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
}

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

.nav-logo {
    flex-shrink: 0;
    margin-left: -45px;
}

.nav-logo img {
    height: 100px;
    width: auto;
    display: block;
}

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

.nav-menu a {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 10px 0;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(35deg, rgb(6, 0, 151) 0%, rgb(130, 4, 255) 73%, rgb(193, 15, 255) 100%);
    display: flex;
    align-items: center;
    padding: 40px 20px;
    padding-top: 160px;
    position: relative;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex-shrink: 0;
    width: auto;
    max-width: 500px;
}

.hero-image img {
    width: auto;
    max-width: 100%;
    height: auto;
}

.hero h1 {
    color: #fff;
    font-size: 80px;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-subtitle {
    color: #fff;
    font-size: 18px;
    margin-bottom: 40px;
}

.hero-slogan {
    color: #fff;
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Media Text Layout */
.media-text {
    display: grid;
    grid-template-columns: 1fr 37%;
    gap: 40px;
    align-items: center;
}

.media-text.media-right {
    grid-template-columns: 1fr 37%;
}

.media-text-content {
    padding-right: 40px;
}

.media-text-media {
    margin: 0;
}

.media-text-media img {
    width: 100%;
    height: auto;
}

/* Buttons */
.buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f4d03f 0%, #f6b93b 100%);
    color: #333;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.button-icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
}

/* Role Section */
.section-role {
    background: #fff;
    padding: 80px 0 80px;
}

/* Columns Layout */
.columns {
    display: grid;
    gap: 40px;
}

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

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

.column h3 {
    margin-top: 16px;
    margin-bottom: 10px;
    font-size: 22px;
}

.column p {
    color: #8a8a8a; /* 浅灰色 */
    line-height: 1.8;
}

.character-image img,
.product-image img {
    width: 100%;
    border-radius: 4px;
}

/* About Section */
.section-about {
    background: #fff;
    padding: 143px 0 144px;
}

.section-about .media-text {
    grid-template-columns: 1fr 40%;
}

.section-about .media-text-content {
    padding-right: 80px;
}

.section-about h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.section-about p {
    margin-bottom: 15px;
    color: #8a8a8a;
}

/* Quote Section */
.section-quote {
    background: #F9F6FD;
    padding: 80px 0;
    text-align: center;
}

.quote-avatar {
    margin: 0 auto 40px;
}

.quote-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.quote-text {
    font-size: 32px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #6b778d;
}

.quote-author {
    font-size: 18px;
    color: #6b778d;
}

/* Company Section */
.section-company {
    background: #fff;
    padding: 60px 0;
    text-align: center;
}

.company-logo {
    margin: 0 auto 20px;
}

.company-logo img {
    width: 222px;
    height: auto;
}

.section-company h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.section-company p {
    color: #8a8a8a;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Products Section */
.section-products {
    background: #fff;
    padding: 144px 0;
}

.section-products .columns {
    margin-top: 60px;
    gap: 80px;
}

.section-products h3 {
    text-align: center;
    margin-bottom: 20px;
}

.product-image {
    margin: 0 0 15px;
}

.product-image figcaption {
    text-align: center;
    color: #8a8a8a;
    font-size: 14px;
    margin-top: 10px;
}

/* Contact Section */
.section-contact {
    background: #000;
    padding: 60px 0;
}

.contact-card {
    background: #2c3e50;
    padding: 40px;
    text-align: center;
    border-radius: 0;
}

.contact-card h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: normal;
}

.contact-card p {
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: #e8e8e8;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer a {
    color: #666;
    transition: color 0.3s;
}

.footer a:hover {
    color: #8204ff;
}

.footer-beian {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.beian-icon {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-text,
    .media-text.media-right,
    .section-about .media-text {
        grid-template-columns: 1fr;
    }

    .media-text-content {
        padding-right: 0;
        order: 1;
    }

    .media-text-media {
        order: 2;
    }

    .section-about .media-text-content {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: none;
        display: none;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid #e8e8e8;
    }

    .nav-menu a {
        display: block;
        padding: 20px 20px;
        color: #4a148c;
        font-size: 16px;
        text-align: left;
    }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1000;
    }

    .nav-toggle span {
        background: #fff;
    }

    .nav-toggle.active span {
        background: #333;
    }

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

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .nav {
        height: 70px;
        padding: 0 15px;
    }

    .nav-logo {
        margin-left: 0;
    }

    .nav-logo img {
        height: 50px;
    }

    .hero {
        min-height: 100vh;
        padding: 90px 20px 40px;
    }

    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: relative;
        min-height: calc(100vh - 130px);
    }

    .hero-content {
        max-width: 100%;
        flex: 1;
    }

    .hero-image {
        position: absolute;
        bottom: 40px;
        right: 0;
        width: 300px;
        max-width: 45%;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-slogan {
        font-size: 18px;
    }

    .button {
        padding: 14px 30px;
        font-size: 16px;
    }

    .columns-4,
    .columns-2 {
        grid-template-columns: 1fr;
    }

    .section-about,
    .section-products {
        padding: 60px 0;
    }

    .quote-text {
        font-size: 20px;
    }

    .section-products .columns {
        gap: 40px;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 30px;
    height: 30px;
    background: #6c7a89;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #5a6978;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
