* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: transparent; /* 初始状态为透明 */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
}

/* 初始状态下的文字颜色 */
.nav-links a, 
.language-btn,
.logo-text,
.language-dropdown a {  /* 添加下拉菜单选项 */
    color: white;
    transition: color 0.3s ease;
}

/* 滚动后的样式 */
nav.scrolled {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 滚动后的文字颜色 */
nav.scrolled .nav-links a,
nav.scrolled .language-btn,
nav.scrolled .logo-text,
nav.scrolled .language-dropdown a {  /* 添加下拉菜单选项 */
    color: #333;
}

/* 修改菜单图标颜色 */
.menu-toggle span {
    background: white;
    transition: background-color 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 40px;
    height: 40px;
    background: url('./images/yourtools-logo.jpeg') center/cover no-repeat;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
}

.menu-toggle {
    display: none;
}

/* 主要内容样式 */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%; /* 移除上下内边距 */
    background: linear-gradient(135deg, #F5BFD7 0%, #CAEFD7 100%);
    height: 100vh; /* 改用固定的视窗高度 */
    min-height: unset; /* 移除最小高度限制 */
    position: relative; /* 添加相对定位 */
    margin-bottom: -3rem; /* 减少与下一个区块的间距 */
}

/* 调整内容区域的位置 */
.hero-content {
    flex: 1;
    padding-right: 2rem;
    padding-top: 6rem; /* 为顶部导航栏留出空间 */
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* PC端展示图片样式 */
.hero-image {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
}

.hero-image img {
    max-width: 90%; /* 从 80% 增加到 90% */
    height: auto;
    max-height: 80vh; /* 从 70vh 增加到 80vh */
    margin: -2rem 0;
}

.hero-content .cta-button {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
    background: #F63F90;  /* 改为纯色高亮 */
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    box-shadow: 0 10px 20px rgba(246, 63, 144, 0.3);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.hero-content .cta-button:hover {
    transform: translateY(-2px);
}

.hero-content .cta-button:active {
    transform: translateY(1px);
}

.hero-content .cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 63, 144, 0.5), 0 10px 20px rgba(246, 63, 144, 0.3);
}

/* 添加按钮光效 */
.hero-content .cta-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.hero-content .cta-button:hover::before {
    animation: shine 1.5s ease-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* 移动端展示图片样式调整 */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: unset;
        padding: 8rem 5% 5rem;
        margin-bottom: 0;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-top: 0;
        padding-right: 0;
        margin-bottom: 16rem; /* 适当调整底部间距 */
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        padding: 0.25rem;
        margin-top: 2rem; /* 减小顶部间距 */
    }
    
    .hero-image img {
        max-width: 95%; /* 从 90% 增加到 95% */
        max-height: 65vh; /* 从 60vh 增加到 65vh */
        margin: -1rem 0; /* 调整负边距 */
    }
    
    .nav-links {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
        opacity: 0;
    }
    
    .nav-links.show {
        max-height: 400px;
        padding: 1rem 0;
        opacity: 1;
    }
    
    /* 强制菜单项竖向排列 */
    .nav-links > * {
        display: block;
        width: 100%;
    }

    .nav-links a {
        display: block;
        margin: 0;
        padding: 0.8rem 5%;
        width: 100%;
        text-align: left;
        color: #333;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .menu-toggle {
        display: block;
        cursor: pointer;
    }
    
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        margin-top: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .feature-image {
        width: 250px;
        height: 250px;
    }
    
    .logo-image {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .language-selector {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .language-btn {
        width: 100%;
        text-align: left;
        padding: 0.8rem 5%;
        background: none;
        color: #333;
        border: none;
    }
    
    .language-dropdown {
        position: static;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        display: none;
    }
    
    .language-dropdown.show {
        display: block;
    }
    
    .language-dropdown a {
        padding: 0.8rem 8%;
        border-bottom: none;
    }
    
    .hero-content .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .hero-image {
        padding: 0.25rem; /* 移动端更小的内边距 */
    }
    
    .hero-image img {
        max-width: 90%;
        max-height: 60vh;
        margin: -1.5rem 0; /* 移动端相应调整负边距 */
    }
}

/* 功能区域样式 */
.features {
    padding: 5rem 5%;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 1.5rem; /* 添加内边距 */
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center; /* 确保内容居中 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-image {
    width: 250px; /* 稍微减小一点宽度 */
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 1.5rem; /* 添加底部间距 */
}

.feature-card h3 {
    margin: 0 0 0.5rem 0; /* 调整标题边距 */
    font-size: 1.5rem;
}

.feature-card p {
    margin: 0; /* 重置段落边距 */
    color: #666;
}

/* 移除不需要的图标样式 */
.feature-icon {
    display: none;
}

/* 下载区域样式 */
.download {
    padding: 5rem 5%;
    text-align: center;
    background: #f5f7fa;
}

.download h2 {
    font-size: 3rem; /* 增大标题字体 */
    margin-bottom: 2rem;
    font-weight: 600;
}

.download-buttons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 2rem;
    background: #F63F90;
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    transition: transform 0.3s ease;
}

.store-button:hover {
    transform: translateY(-2px);
}

.store-button:active {
    transform: translateY(1px);
}

.store-button img {
    height: 24px;
    width: auto;
}

.store-button span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .download h2 {
        font-size: 2.5rem;
    }
    
    .store-button {
        padding: 0.7rem 1.8rem;
    }
    
    .store-button img {
        height: 20px;
    }
    
    .store-button span {
        font-size: 1rem;
    }
}

/* 页脚样式 */
footer {
    background: #7D4C6D;
    color: white;
    padding: 3rem 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

/* 社交链接样式优化 */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-links a:active {
    transform: translateY(1px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .social-links a {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* 订阅方案样式 */
.pricing {
    padding: 5rem 5%;
    background: #f8f9fa;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 5%;
    position: relative;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 2px solid #F63F90;
}

.popular-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #F63F90;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.price {
    margin: 1.5rem 0;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #F63F90;
}

.price .period {
    color: #666;
}

.benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.benefits li {
    margin: 0.8rem 0;
    color: #666;
}

.subscribe-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #F63F90;  /* 改为高亮色 */
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.subscribe-button:hover {
    transform: translateY(-2px);
}

.subscribe-button:active {
    transform: translateY(1px);
}

.subscribe-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 63, 144, 0.5);
    background: #F63F90;
    color: white;
}

/* 语言选择器样式 */
.language-selector {
    display: inline-block;
    position: relative;
    margin-left: 2rem;
}

.language-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white; /* 确保按钮文字为白色 */
    transition: color 0.3s ease;
}

/* 箭头的颜色跟随按钮文字颜色 */
.language-btn .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: inherit; /* 继承父元素（按钮）的颜色 */
}

/* 滚动后的颜色变化 */
nav.scrolled .language-btn {
    color: #333;
}

.language-btn.active .arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.1);  /* 初始状态下半透明背景 */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 150px;
    display: none;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.language-dropdown.show {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #333;
    text-decoration: none;
    margin: 0;
    transition: background-color 0.3s ease;
}

.language-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.1);  /* 初始状态下的悬停背景 */
}

/* 修改语言选择器的激活状态样式 */
.language-dropdown a.active {
    background-color: rgba(255, 255, 255, 0.2);  /* 初始状态下的背景 */
    color: white;  /* 初始状态下的文字颜色 */
    position: relative;
}

nav.scrolled .language-dropdown a.active {
    background-color: #fff1f5;  /* 滚动后的背景 */
    color: #F63F90;  /* 滚动后的文字颜色 */
}

.language-dropdown a.active::after {
    color: currentColor;  /* 使用当前文字颜色 */
}

/* 修改下拉菜单的背景 */
nav.scrolled .language-dropdown {
    background: white;  /* 滚动后的背景 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 10rem 5% 5rem;
        min-height: auto;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
    
    .nav-links {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
        opacity: 0;
    }
    
    .nav-links.show {
        max-height: 400px;
        padding: 1rem 0;
        opacity: 1;
    }
    
    /* 强制菜单项竖向排列 */
    .nav-links > * {
        display: block;
        width: 100%;
    }

    .nav-links a {
        display: block;
        margin: 0;
        padding: 0.8rem 5%;
        width: 100%;
        text-align: left;
        color: #333;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .menu-toggle {
        display: block;
        cursor: pointer;
    }
    
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        margin-top: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .feature-image {
        width: 220px;
        height: 220px;
    }
    
    .logo-image {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .language-selector {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .language-btn {
        width: 100%;
        text-align: left;
        padding: 0.8rem 5%;
        background: none;
        color: #333;
        border: none;
    }
    
    .language-dropdown {
        position: static;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        display: none;
    }
    
    .language-dropdown.show {
        display: block;
    }
    
    .language-dropdown a {
        padding: 0.8rem 8%;
        border-bottom: none;
    }
    
    .hero-content .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .hero-image {
        padding: 0.25rem; /* 移动端更小的内边距 */
    }
    
    .hero-image img {
        max-width: 90%;
        max-height: 60vh;
        margin: -1.5rem 0; /* 移动端相应调整负边距 */
    }
}

/* 修改订阅方案标题样式 */
.pricing h2 {
    font-size: 3rem; /* 从默认大小增加到 3rem */
    margin-bottom: 2rem;
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .pricing h2 {
        font-size: 2.5rem; /* 移动端稍微小一点 */
    }
}

/* 修改主要功能标题样式 */
.features h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .features h2 {
        font-size: 2.5rem;
    }
}

/* 修改遮罩层样式 */
.pricing-overlay {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    border-radius: 15px; /* 添加圆角，与卡片保持一致 */
}

/* 调整遮罩内容的样式，使其在深色背景上更加醒目 */
.overlay-content {
    text-align: center;
    padding: 2.5rem;
    background: #F63F90;
    color: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.overlay-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.overlay-content p {
    font-size: 1.2rem;
    opacity: 1; /* 提高文字透明度，使其更清晰 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .overlay-content h3 {
        font-size: 2rem;
    }
    
    .overlay-content p {
        font-size: 1rem;
    }
}

/* 超小屏幕的调整 */
@media (max-width: 480px) {
    .feature-image {
        width: 180px;
        height: 180px;
    }
}

/* 修改弹框样式 */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 添加半透明背景 */
    z-index: 2000;
}

.wechat-modal.show {
    display: block;
}

.modal-content {
    position: absolute;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    width: 280px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    /* 初始位置会由 JavaScript 动态设置 */
}

/* 其他样式保持不变 */
.modal-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.modal-content img {
    width: 200px;
    height: 200px;
    margin-bottom: 1rem;
}

.modal-content p {
    color: #333;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: #F63F90;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #e63982;
    transform: translateY(-2px);
}

.close-modal:active {
    transform: translateY(1px);
} 