/* 易微信官网样式文件 - 合并后的简洁版本 */

/* CSS变量定义 - 所有页面共享 */
:root {
    --brand-primary: #38CD7F;
    --brand-main: #07c160;
    --brand-dark: #06b357;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
}

/* 基础样式覆盖 */
body {
    background-color: var(--bg-light) !important;
    color: var(--text-primary) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-brand-primary {
    background-color: var(--brand-primary) !important;
}

.bg-brand-main {
    background-color: var(--brand-main) !important;
}

.text-brand-main {
    color: var(--brand-main) !important;
}

.text-gray-900 {
    color: #1a202c !important;
}

.text-gray-600 {
    color: #718096 !important;
}

.text-gray-700 {
    color: #4a5568 !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.border-gray-100 {
    border-color: #f7fafc !important;
}

.border-gray-200 {
    border-color: #edf2f7 !important;
}

/* 通用组件样式 */
.btn-primary {
  @apply bg-wechat-green text-white px-6 py-2 rounded-lg hover:bg-green-600 transition-colors;
}

.btn-secondary {
  @apply border border-wechat-green text-wechat-green px-6 py-2 rounded-lg hover:bg-green-50 transition-colors;
}

.card {
  @apply bg-white rounded-xl shadow-md hover:shadow-lg transition-shadow;
}

.card-lg {
  @apply card p-8;
}

.card-md {
  @apply card p-6;
}

.card-sm {
  @apply card p-4;
}

/* 页面布局 */
.page-section {
  @apply py-16;
}

.page-container {
  @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
}

.page-header {
  @apply text-center mb-12;
}

.page-title {
  @apply text-4xl md:text-5xl font-bold text-gray-900 mb-4;
}

.page-subtitle {
  @apply text-xl text-gray-600;
}

/* 动画效果 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.glow-effect {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(56, 205, 127, 0.4);
    }
    to {
        box-shadow: 0 0 30px rgba(7, 193, 96, 0.6);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.pulse-brand {
    animation: pulse-brand 2s infinite;
}

@keyframes pulse-brand {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 205, 127, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(56, 205, 127, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 205, 127, 0);
    }
}

.success-message {
    animation: slideIn 0.5s ease-out;
}

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

/* 页面特定样式 */
.hero-gradient {
    background: linear-gradient(135deg, #38CD7F 0%, #07c160 50%, #06b357 100%);
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(56, 205, 127, 0.1);
}

.version-badge {
    background: linear-gradient(135deg, #38CD7F 0%, #07c160 100%);
    color: white;
}

.download-card {
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(56, 205, 127, 0.1) 0%, rgba(7, 193, 96, 0.1) 100%);
    color: #07c160;
}

.timeline {
            position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-left: 50px;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #07c160;
    border: 2px solid white;
    box-shadow: 0 0 0 3px #07c160;
}



.feature-list {
    counter-reset: feature;
}

.feature-item {
    counter-increment: feature;
}

.feature-item::before {
    content: counter(feature);
    background: #07c160;
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-question.active {
    background-color: rgba(56, 205, 127, 0.05);
}

.form-group {
    transition: all 0.3s ease;
}

.form-group:focus-within {
    transform: translateY(-2px);
}

/* 表单验证样式 */
.form-input-error {
    border-color: #ef4444 !important;
}

.form-input-success {
    border-color: #10b981 !important;
}

/* 页面切换样式 - 新增 */
.page-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page-content.active {
    display: block;
}

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

.page-tab {
    transition: all 0.3s ease;
}

.page-tab:hover {
    transform: translateY(-2px);
}

.page-tab.active {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(7, 193, 96, 0.3);
}

/* 法律条款页面特定样式 */
.legal-section {
    margin-bottom: 3rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h3 {
    border-left: 4px solid #07c160;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.legal-content {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 2rem;
    line-height: 1.7;
}

.legal-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* 联系方式样式 */
.contact-method {
    background: linear-gradient(135deg, #38cd7f15 0%, #07c16015 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(7, 193, 96, 0.2);
}

.contact-icon {
    background: linear-gradient(135deg, #38CD7F 0%, #07c160 100%);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

/* 下拉菜单样式 - 新增 */
.dropdown-active {
    position: relative;
    z-index: 60;
}

.dropdown-button-active {
    background: linear-gradient(135deg, rgba(56, 205, 127, 0.1) 0%, rgba(7, 193, 96, 0.1) 100%);
    color: #07c160 !important;
}

.dropdown-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 24px;
    width: 16px;
    height: 16px;
    background: inherit;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    z-index: -1;
}

.dropdown-item {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    margin: 0.125rem;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(56, 205, 127, 0.08) 0%, rgba(7, 193, 96, 0.08) 100%);
    transform: translateX(4px);
}

.dropdown-item:active {
    background: linear-gradient(135deg, rgba(56, 205, 127, 0.15) 0%, rgba(7, 193, 96, 0.15) 100%);
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(56, 205, 127, 0.2) 50%, transparent 100%);
    margin: 0.25rem 0;
}

/* 下拉菜单动画 */
.dropdown-enter {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}

.dropdown-enter-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-exit {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dropdown-exit-active {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* 移动端下拉菜单适配 */
@media (max-width: 1023px) {
    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid rgba(56, 205, 127, 0.1);
    }
    
    .dropdown-menu::before {
        display: none;
    }
}

/* 页面切换样式 - 新增 */
.page-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page-content.active {
    display: block;
}

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

.page-tab {
    transition: all 0.3s ease;
}

.page-tab:hover {
    transform: translateY(-2px);
}

.page-tab.active {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(7, 193, 96, 0.3);
}

/* 法律条款页面特定样式 */
.legal-section {
    margin-bottom: 3rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h3 {
    border-left: 4px solid #07c160;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.legal-content {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 2rem;
    line-height: 1.7;
}

.legal-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* 联系方式样式 */
.contact-method {
    background: linear-gradient(135deg, #38cd7f15 0%, #07c16015 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(7, 193, 96, 0.2);
}

.contact-icon {
    background: linear-gradient(135deg, #38CD7F 0%, #07c160 100%);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

/* 下拉菜单样式 - 新增 */
.dropdown-active {
    position: relative;
    z-index: 60;
}

.dropdown-button-active {
    background: linear-gradient(135deg, rgba(56, 205, 127, 0.1) 0%, rgba(7, 193, 96, 0.1) 100%);
    color: #07c160 !important;
}

.dropdown-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 24px;
    width: 16px;
    height: 16px;
    background: inherit;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    z-index: -1;
}

.dropdown-item {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    margin: 0.125rem;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(56, 205, 127, 0.08) 0%, rgba(7, 193, 96, 0.08) 100%);
    transform: translateX(4px);
}

.dropdown-item:active {
    background: linear-gradient(135deg, rgba(56, 205, 127, 0.15) 0%, rgba(7, 193, 96, 0.15) 100%);
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(56, 205, 127, 0.2) 50%, transparent 100%);
    margin: 0.25rem 0;
}

/* 下拉菜单动画 */
.dropdown-enter {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
}

.dropdown-enter-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-exit {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dropdown-exit-active {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* 移动端下拉菜单适配 */
@media (max-width: 1023px) {
    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid rgba(56, 205, 127, 0.1);
    }
    
    .dropdown-menu::before {
        display: none;
    }
}