/* WenXin - AI音乐生成器样式 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 彩虹文字效果 */
.rainbow-text {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 3s ease infinite;
}

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 渐变背景动画 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    transition: all 0.3s ease;
}

.gradient-bg:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* 深色渐变背景 */
.dark-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

/* 文字渐变效果 */
.text-gradient {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* 按钮悬停效果 */
.btn-hover {
    transition: all 0.3s ease;
}

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

/* 输入框焦点效果 */
.input-focus:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* 图标动画 */
.icon-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 音乐播放器样式 */
.waveform-wrapper {
    transition: all 0.3s ease;
}

.waveform-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.player-main-controls button {
    transition: all 0.3s ease;
}

.player-main-controls button:hover {
    transform: scale(1.1);
}

/* 卡片样式增强 */
.card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* 导航栏增强 */
nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem !important;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .waveform-wrapper {
        padding: 1rem;
    }
}

/* 加载动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

/* 社交媒体图标悬停效果 */
.social-icons a {
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1) rotate(5deg);
}

/* 按钮增强 */
.app-button {
    position: relative;
    overflow: hidden;
}

.app-button::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: left 0.5s;
}

.app-button:hover::before {
    left: 100%;
}

/* 渐变背景增强 */
.create-with-mubert__image div {
    position: relative;
    overflow: hidden;
}

.create-with-mubert__image div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.create-with-mubert__image div:hover::before {
    transform: translateX(100%);
}

/* 加载动画 */
.loading {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 社交媒体图标悬停效果 */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    color: #667eea;
}

/* 表单验证样式 */
.form-input:invalid {
    border-color: #e53e3e;
}

.form-input:valid {
    border-color: #38a169;
}

/* 页面加载动画 */
.page-transition {
    animation: pageLoad 0.8s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1f2937;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #ef4444;
}

.notification.info {
    background: #3b82f6;
}

/* 加载器 */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
} 
/* WenXin official website refresh */
:root {
    --wx-ink: #14161f;
    --wx-muted: #626879;
    --wx-line: rgba(22, 25, 36, .10);
    --wx-violet: #7b6bf2;
    --wx-blue: #6e9bf8;
    --wx-peach: #f4a185;
    --wx-cyan: #5ecbd4;
    --wx-surface: #f7f7fb;
}

body { color: var(--wx-ink); background: #fff; }
.site-header-logo { width: 34px; height: 34px; border-radius: 10px; margin-right: 10px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.wenxin-nav { display: flex; align-items: center; gap: 26px; }
.wenxin-nav a { color: var(--wx-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.wenxin-nav a:hover { color: var(--wx-violet); }

.wx-section,
.wx-feature-grid,
.wx-journey-section,
.wx-heritage-banner,
.wx-device-section,
.wx-final-cta { width: min(1180px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }

.wx-intro { padding: 120px 0 58px; max-width: 860px; text-align: center; }
.wx-eyebrow { color: var(--wx-violet); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.wx-intro h2, .wx-journey-section h2, .wx-heritage-banner h2, .wx-device-section h2, .wx-final-cta h2 {
    font-size: clamp(34px, 4.2vw, 58px); line-height: 1.12; letter-spacing: -.045em; margin: 18px 0 20px;
}
.wx-intro p, .wx-journey-copy > p, .wx-heritage-banner p, .wx-device-section p, .wx-final-cta p {
    color: var(--wx-muted); font-size: 18px; line-height: 1.8;
}

.wx-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding-bottom: 110px; }
.wx-feature-card { min-height: 360px; position: relative; padding: 38px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.45); box-shadow: 0 20px 60px rgba(39, 39, 73, .08); }
.wx-feature-card::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; bottom: -95px; background: rgba(255,255,255,.34); }
.wx-card-prescription { background: linear-gradient(145deg, #eee9ff 0%, #dbe3ff 100%); }
.wx-card-mindfulness { background: linear-gradient(145deg, #ffe7de 0%, #f8bed1 100%); }
.wx-card-heritage { background: linear-gradient(145deg, #dff7f1 0%, #b8dcf6 100%); }
.wx-card-create { background: linear-gradient(145deg, #fee8c6 0%, #e6c7ff 100%); }
.wx-card-index { position: absolute; top: 30px; right: 34px; font-size: 13px; color: rgba(20,22,31,.44); font-weight: 800; }
.wx-card-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,.72); font-size: 23px; color: var(--wx-ink); }
.wx-feature-card h3 { font-size: 30px; margin: 34px 0 12px; letter-spacing: -.035em; }
.wx-feature-card p { color: #4c5160; font-size: 16px; max-width: 500px; line-height: 1.7; }
.wx-feature-card ul { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 26px 0 0; }
.wx-feature-card li { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.54); font-size: 13px; }
.wx-text-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; margin-top: 25px; color: var(--wx-ink); font-weight: 750; text-decoration: none; }

.wx-journey-section { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 80px; padding: 105px 70px; border-radius: 38px; background: #11131d; color: white; }
.wx-journey-copy > p { color: rgba(255,255,255,.66); }
.wx-journey-steps { margin-top: 34px; display: grid; gap: 14px; }
.wx-journey-steps > div { display: flex; align-items: center; gap: 18px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.035); }
.wx-journey-steps b { color: #b5a8ff; font-size: 12px; }
.wx-orbit { position: relative; min-height: 440px; display: grid; place-items: center; }
.wx-orbit-core { position: relative; z-index: 2; width: 118px; height: 118px; border-radius: 36px; display: grid; place-items: center; font-size: 40px; background: linear-gradient(145deg, #8d72ff, #f19ab6); box-shadow: 0 0 70px rgba(143,110,255,.45); }
.wx-orbit-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.ring-one { width: 270px; height: 270px; }
.ring-two { width: 400px; height: 400px; }
.orbit-label { position: absolute; padding: 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.07); font-size: 13px; }
.orbit-label-one { top: 32px; right: 52px; }
.orbit-label-two { bottom: 60px; left: 20px; }
.orbit-label-three { top: 115px; left: 5px; }

.wx-heritage-banner { margin-top: 110px; padding: 76px; border-radius: 38px; display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; background: linear-gradient(135deg, #eaf7f2, #eef0ff); }
.wx-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.wx-primary-link, .wx-secondary-link { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 750; text-decoration: none; }
.wx-primary-link { color: #fff; background: var(--wx-ink); }
.wx-secondary-link { color: var(--wx-ink); background: rgba(255,255,255,.72); border: 1px solid var(--wx-line); }

.wx-device-section { margin-top: 28px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 76px; align-items: center; padding: 82px 76px; border: 1px solid var(--wx-line); border-radius: 38px; background: #fff; }
.wx-device-visual { min-height: 290px; position: relative; display: grid; place-items: center; border-radius: 28px; overflow: hidden; background: linear-gradient(145deg, #171927, #292d46); color: white; font-size: 68px; }
.wx-brainwave { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; opacity: .55; }
.wx-brainwave span { display: block; width: 5px; border-radius: 8px; background: linear-gradient(#68e0dc,#b16dff); }
.wx-brainwave span:nth-child(1), .wx-brainwave span:nth-child(7) { height: 35px; }
.wx-brainwave span:nth-child(2), .wx-brainwave span:nth-child(6) { height: 90px; }
.wx-brainwave span:nth-child(3), .wx-brainwave span:nth-child(5) { height: 155px; }
.wx-brainwave span:nth-child(4) { height: 220px; }
.wx-device-visual > i { position: relative; z-index: 2; }

.wx-final-cta { margin-top: 110px; margin-bottom: 110px; padding: 90px 40px; text-align: center; border-radius: 38px; background: linear-gradient(140deg, #f8eee7, #e9e7ff 50%, #e6f7f4); }
.wx-final-cta p { margin-bottom: 30px; }

.wenxin-footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand-name { font-size: 24px; }
.footer-tagline { color: var(--wx-muted); margin: 3px 0 10px; }
.logo-block__adress { display: grid; gap: 2px; }

.subpage-main { min-height: 80vh; padding: 150px 24px 100px; }
.subpage-hero { width: min(960px, 100%); margin: 0 auto 70px; text-align: center; }
.subpage-hero h1 { font-size: clamp(44px, 7vw, 82px); letter-spacing: -.055em; line-height: 1.02; margin: 18px 0; }
.subpage-hero p { color: var(--wx-muted); font-size: 19px; line-height: 1.75; }
.subpage-grid { width: min(1100px, 100%); margin: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.subpage-card { padding: 34px; border-radius: 24px; background: var(--wx-surface); border: 1px solid var(--wx-line); }
.subpage-card h2 { font-size: 25px; margin-bottom: 12px; }
.subpage-card p { color: var(--wx-muted); line-height: 1.75; }
.subpage-card-wide { grid-column: 1 / -1; background: linear-gradient(135deg, #f4eeff, #eaf8f6); }

@media (max-width: 900px) {
    .wenxin-nav { gap: 12px; }
    .wenxin-nav a:not(.new-button):nth-child(3), .wenxin-nav a:not(.new-button):nth-child(4) { display: none; }
    .wx-feature-grid, .wx-journey-section, .wx-device-section, .wx-heritage-banner { grid-template-columns: 1fr; }
    .wx-journey-section, .wx-device-section, .wx-heritage-banner { padding: 55px 32px; }
    .wx-orbit { min-height: 360px; }
    .wx-heritage-banner { align-items: start; }
}

@media (max-width: 640px) {
    .site-header-logo { display: none; }
    .wenxin-nav a:not(.new-button) { display: none; }
    .wx-section, .wx-feature-grid, .wx-journey-section, .wx-heritage-banner, .wx-device-section, .wx-final-cta { width: min(100% - 28px, 1180px); }
    .wx-intro { padding-top: 78px; }
    .wx-feature-grid { grid-template-columns: 1fr; padding-bottom: 70px; }
    .wx-feature-card { min-height: 340px; padding: 28px; border-radius: 23px; }
    .wx-journey-section, .wx-device-section, .wx-heritage-banner { border-radius: 26px; padding: 42px 22px; gap: 34px; }
    .wx-orbit { min-height: 320px; transform: scale(.84); }
    .wx-final-cta { margin-top: 70px; margin-bottom: 70px; padding: 60px 24px; }
    .subpage-main { padding-top: 105px; }
    .subpage-grid { grid-template-columns: 1fr; }
    .subpage-card-wide { grid-column: auto; }
}

/* Mobile hardening: no horizontal scroll and no clipped content */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

img, svg, video, canvas, audio {
    max-width: 100%;
}

.app-header,
.app-header__header,
.index-main,
.downloadAppDiv,
.downloadBtnsDiv,
main,
section,
footer {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 768px) {
    .app-header__header {
        width: 100%;
        height: 72px;
        padding: 0 16px;
        gap: 12px;
    }

    .logo {
        min-width: 0;
        flex: 1 1 auto;
    }

    .logo-text {
        max-width: calc(100vw - 150px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 22px;
    }

    .site-header-logo {
        display: block;
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
    }

    .wenxin-nav {
        flex: 0 0 auto;
        min-width: 0;
    }

    .wenxin-nav a:not(.new-button) {
        display: none;
    }

    .wenxin-nav .new-button {
        min-height: 40px;
        max-width: 118px;
        padding: 9px 15px;
        font-size: 14px;
        line-height: 1;
        white-space: nowrap;
    }

    .index-main {
        margin-top: 72px;
    }

    .downloadAppDiv {
        width: 100%;
        min-height: auto;
        padding: 54px 16px 44px;
    }

    .melon-logo {
        width: clamp(112px, 36vw, 150px);
        height: auto;
        aspect-ratio: 1;
        border-radius: 26px;
        margin: 0 auto;
    }

    .melon-logo-text {
        max-width: calc(100vw - 32px);
        overflow-wrap: anywhere;
        text-align: center;
        font-size: clamp(30px, 10vw, 42px);
        line-height: 1.15;
        margin-top: 16px;
    }

    .downloadBtnsDiv {
        width: 100%;
        margin: 52px 0 0;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
    }

    .downloadBtnDiv,
    .downloadBtnDiv:not(:first-child) {
        width: min(100%, 320px);
        height: 72px;
        margin: 0;
        padding: 0 18px;
    }

    .downloadBtnText {
        font-size: 19px;
        margin-left: 12px;
        white-space: nowrap;
    }

    #google-download-button svg {
        width: min(74%, 230px) !important;
        height: auto;
    }

    .main-header-layout {
        width: 100%;
        padding: 58px 18px 72px;
    }

    .main-title {
        overflow-wrap: anywhere;
    }

    .wx-section,
    .wx-feature-grid,
    .wx-journey-section,
    .wx-heritage-banner,
    .wx-device-section,
    .wx-final-cta {
        width: calc(100% - 28px);
        max-width: calc(100% - 28px);
    }

    .wx-feature-card,
    .wx-journey-copy,
    .wx-heritage-banner > *,
    .wx-device-section > *,
    .subpage-card {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .wx-orbit {
        width: 100%;
        transform: none;
        overflow: hidden;
    }

    .ring-two { width: min(82vw, 330px); height: min(82vw, 330px); }
    .ring-one { width: min(58vw, 230px); height: min(58vw, 230px); }

    .subpage-main {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .subpage-hero,
    .subpage-grid {
        width: 100%;
        max-width: 100%;
    }

    .subpage-card {
        padding: 26px 22px;
    }

    .footer__wrapper,
    .footer__block,
    .logo-block,
    .logo-block__columns,
    .wenxin-footer-brand {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .app-header__header { padding: 0 12px; }
    .site-header-logo { display: none; }
    .logo-text { max-width: calc(100vw - 126px); font-size: 20px; }
    .wenxin-nav .new-button { max-width: 108px; padding: 8px 12px; font-size: 13px; }
    .downloadAppDiv { padding-left: 12px; padding-right: 12px; }
    .downloadBtnDiv, .downloadBtnDiv:not(:first-child) { width: 100%; }
    .wx-feature-card { padding: 24px 20px; }
    .wx-journey-section, .wx-device-section, .wx-heritage-banner { padding-left: 18px; padding-right: 18px; }
}
.wx-tip { width: 100%; right: 0; }
