/*
ThemeName=星际 One
ThemeType=home
Description=浅色渐变风格聚合支付首页
Version=V1.0.1
Author=
Author_Description=
Author_link=
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(to right, #ffffff 0%, #ffffff 40%, #d4c6ff 55%, #c2b0ff 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ========== 顶部导航 ========== */
.navbar {
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #ffffff 0%, #ffffff 40%, #d4c6ff 55%, #c2b0ff 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(108, 92, 231, 0.12);
    backdrop-filter: blur(8px);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #7f00ff, #e100ff);
    background-clip: text;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    color: #592fd6;
    white-space: nowrap;
}

/* 汉堡菜单按钮样式 */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
    margin-left: auto;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #7f00ff;
}

/* 接口文档导航链接 */
.nav-doc-link {
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}

.nav-doc-link:hover {
    background: rgba(127, 0, 255, 0.08);
}

.cta-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(45deg, #7f00ff, #e100ff);
    color: #fff !important;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(127, 0, 255, 0.25);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(127, 0, 255, 0.35);
}

/* 移动端导航栏样式 */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 4%;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hamburger-menu {
        display: block;
        order: 3;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(to right, #ffffff, #d4c6ff);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        padding: 0;
    }

    .nav-links.active {
        max-height: 300px;
        padding: 1rem 0;
    }

    .nav-links a {
        margin: 0.8rem 0;
        font-size: 1.1rem;
        display: block;
        text-align: center;
        padding: 0.5rem 0;
        width: 90%;
    }

    .nav-links .cta-button {
        margin-top: 0.8rem;
        padding: 0.8rem 2rem;
        width: 80%;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 3%;
    }

    .logo {
        font-size: 1.3rem;
    }
}

/* ========== 主体内容 ========== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    flex: 1;
    width: 100%;
}

.left-content {
    flex: 1;
    padding-right: 2rem;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.logo-container .logo {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: 12px;
    background-color: #6c5ce7;
}

.brand-name {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}

.main-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.main-title .text-block {
    font-weight: 700;
    display: block;
    background: linear-gradient(45deg, #c2b0ff, #7f00ff);
    background-clip: text;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #d4c6ff;
    position: relative;
    animation: textGlow 6s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        filter: brightness(1);
        text-shadow: none;
    }
    40% {
        filter: brightness(1.3);
        text-shadow: 0 0 15px rgba(212, 198, 255, 0.5),
                     0 0 25px rgba(194, 176, 255, 0.3);
    }
}

.sub-title {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

/* ========== 特性点 ========== */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.3rem;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #333;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.15);
}

.check-icon {
    background: linear-gradient(45deg, #7f00ff, #e100ff);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.7rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.4);
    flex-shrink: 0;
}

/* ========== 右侧浏览器预览 ========== */
.right-content {
    flex: 1.5;
    position: relative;
    perspective: 1500px;
}

.browser-mockup {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: rotateY(-30deg) rotateX(10deg);
    transform-origin: center left;
    transition: transform 0.4s ease;
}

.browser-mockup:hover {
    transform: rotateY(-22deg) rotateX(6deg);
}

.preview-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.browser-header {
    background: #f1f1f1;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

.browser-dots {
    display: flex;
    gap: 6px;
    margin-right: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #FF5F56; }
.dot.yellow { background-color: #FFBD2E; }
.dot.green { background-color: #27C93F; }

.browser-controls {
    display: flex;
    gap: 10px;
    margin-right: 1rem;
}

.browser-address-bar {
    background: white;
    padding: 0.3rem 1rem;
    border-radius: 4px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.browser-url {
    color: #666;
    font-size: 0.9rem;
}

.browser-actions {
    display: flex;
    margin-left: 1rem;
}

.browser-icon {
    color: #666;
    cursor: pointer;
}

/* ========== 页脚 ========== */
.site-footer {
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(108, 92, 231, 0.12);
    backdrop-filter: blur(8px);
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-name {
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
}

.footer-copy {
    color: #888;
    font-size: 0.9rem;
}

/* 页脚右侧组合（接口文档 + 版权） */
.footer-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-doc-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: 20px;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    white-space: nowrap;
}

.footer-doc-link:hover {
    color: #7f00ff;
    border-color: #7f00ff;
    background: rgba(127, 0, 255, 0.06);
}

/* ========== 响应式调整 ========== */
@media (max-width: 1200px) {
    .container {
        padding: 1.5rem;
    }

    .main-title {
        font-size: 3.5rem;
    }

    .right-content {
        flex: 1.2;
    }

    .browser-mockup {
        transform: rotateY(-20deg) rotateX(5deg);
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
        padding: 1.5rem;
        justify-content: center;
    }

    .left-content {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
        width: 100%;
    }

    .logo-container {
        justify-content: center;
    }

    .main-title {
        font-size: 3rem;
    }

    .sub-title {
        margin-left: auto;
        margin-right: auto;
    }

    .features {
        justify-content: center;
    }

    .right-content {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }

    .browser-mockup {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .browser-mockup:hover {
        transform: translateY(-4px);
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.6rem;
    }

    .footer-right {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .feature-item {
        font-size: 1rem;
    }

    .browser-mockup {
        border-radius: 10px;
    }

    .browser-header {
        padding: 0.4rem 0.8rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .logo-container .logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .main-title {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }

    .sub-title {
        font-size: 1rem;
    }

    .logo-container {
        margin-bottom: 2rem;
    }

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

    .feature-item {
        width: 100%;
        justify-content: flex-start;
        padding: 0.7rem 1rem;
    }

    .browser-dots {
        gap: 4px;
    }

    .browser-controls,
    .browser-actions {
        display: none;
    }

    .browser-address-bar {
        padding: 0.2rem 0.5rem;
    }

    .preview-image {
        max-height: 400px;
    }
}
