/* ==========================================================================
   基础和全局样式 (Base & Globals)
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

.font-brush {
    font-family: 'Ma Shan Zheng', cursive;
}


/* ==========================================================================
   头部导航 (Header)
   ========================================================================== */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e2e8f0;
}

.header .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo-group img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
}

.header-logo-group span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.header-button {
    display: none;
    background-color: #eef2ff;
    color: #4338ca;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.header-button:hover {
    background-color: #c7d2fe;
}


/* ==========================================================================
   主视觉区 (Hero Section)
   ========================================================================== */
.hero-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: center;
    background-image: radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.05), transparent 35%),
                      radial-gradient(circle at 80% 30%, rgba(129, 140, 248, 0.05), transparent 35%);
}

.hero-content {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .app-icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1.5rem auto;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.hero-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.125rem;
    color: #475569;
    margin-top: 0;
    margin-bottom: 2rem;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #4f46e5;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    text-decoration: none;
    transition: all 0.3s;
}
.download-button:hover {
    background-color: #4338ca;
    transform: scale(1.05);
}
.download-button i {
    margin-right: 0.5rem;
}


/* ==========================================================================
   通用版块样式 (Section Generic)
   ========================================================================== */
.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    box-sizing: border-box;
}
.section.bg-white {
    background-color: white;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}
.section-header p {
    margin: 0;
    color: #64748b;
    font-size: 1.125rem;
}


/* ==========================================================================
   核心功能区 (Features Section)
   ========================================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}
.feature-item {
    text-align: center;
    padding: 1.5rem;
}
.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    width: 4rem;
    border-radius: 9999px;
    background-color: #eef2ff;
    color: #4f46e5;
    margin: 0 auto 1rem auto;
}
.feature-icon-wrapper i {
    width: 2rem;
    height: 2rem;
}
.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}
.feature-item p {
    color: #64748b;
    margin: 0;
}


/* ==========================================================================
   应用预览区 (App Preview Section)
   ========================================================================== */
.screenshot-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.screenshot {
    width: 33.333333%;
    max-width: 21.33rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transition: transform 0.3s;
}
.screenshot-1 { transform: rotate(-3deg); }
.screenshot-1:hover { transform: rotate(0); }
.screenshot-2 { z-index: 10; transform: scale(1.1); box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.screenshot-2:hover { transform: scale(1.15); }
.screenshot-3 { transform: rotate(3deg); }
.screenshot-3:hover { transform: rotate(0); }


/* ==========================================================================
   我们的故事 (Our Story Section)
   ========================================================================== */
.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
.story-image img {
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.story-text h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem 0;
}
.story-text p {
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.story-text strong {
    font-weight: 600;
    color: #4f46e5;
}


/* ==========================================================================
   会员权益区 (Membership Section)
   ========================================================================== */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}
.membership-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.membership-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.membership-card .price-overlay {
    position: absolute;
    top: 5rem;
    right: 1rem;
    text-align: center;
    transform: rotate(12deg);
    line-height: 1;
}
.membership-card .price-overlay .price {
    font-size: 2.75rem;
    opacity: 0.8;
    margin: 0;
}
.membership-card .price-overlay .period {
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0;
}
.membership-card .card-content { flex-grow: 1; }
.membership-card .card-header { display: flex; align-items: center; margin-bottom: 1rem; }
.membership-card .card-header img { width: 2.5rem; height: 2.5rem; }
.membership-card .card-header h3 { margin: 0 0 0 1rem; font-size: 1.5rem; font-weight: 700; }
.membership-card .features-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.membership-card .features-list li { display: flex; align-items: center; }
.membership-card .features-list i { width: 1.25rem; height: 1.25rem; margin-right: 0.75rem; }

.membership-card .card-button { 
    display: block;
    text-align: center;
    text-decoration: none;
    width: 100%; 
    margin-top: 2rem; 
    padding-top: 0.75rem; 
    padding-bottom: 0.75rem; 
    border-radius: 0.5rem; 
    border: none; 
    font-weight: 600; 
    cursor: pointer; 
    transition: background-color 0.2s; 
    position: relative;
    overflow: hidden;
}

.card-silver { background-color: #f8fafc; }
.card-silver .card-header h3 { color: #1e293b; }
.card-silver .features-list { color: #475569; }
.card-silver .features-list i { color: #6366f1; }
.card-silver .price-overlay { color: #ef4444; }
.card-silver .card-button { background-color: #e2e8f0; color: #1e293b; }
.card-silver .card-button:hover { background-color: #cbd5e1; }

.card-gold { background-color: #4f46e5; border-color: #4338ca; color: #e0e7ff; box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.card-gold .card-header h3 { color: white; }
.card-gold .badge { position: absolute; top: 1rem; right: 1rem; background-color: #f59e0b; color: black; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 1rem; border-radius: 9999px; transform: rotate(12deg); z-index: 10; }
.card-gold .features-list i { color: #facc15; }
.card-gold .price-overlay { color: #facc15; opacity: 0.9; }
.card-gold .card-button { background-color: white; color: #4f46e5; }
.card-gold .card-button:hover { background-color: #eef2ff; }

.card-diamond { background-color: #1e293b; border-color: #334155; color: #94a3b8; }
.card-diamond .card-header h3 { color: white; }
.card-diamond .features-list i { color: #60a5fa; }
.card-diamond .price-overlay { color: #22d3ee; opacity: 0.9; }
.card-diamond .card-button { background-color: #334155; color: white; }
.card-diamond .card-button:hover { background-color: #475569; }

.membership-footer { text-align: center; font-size: 0.875rem; color: #64748b; margin-top: 3rem; }


/* ==========================================================================
   页脚 (Footer)
   ========================================================================== */
.footer {
    background-color: #1e293b;
    color: #94a3b8;
    padding: 2rem 0;
}
.footer .container { text-align: center; font-size: 0.875rem; }
.footer-links { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.5rem; }
.footer-links a, .footer-links span { text-decoration: none; color: inherit; transition: color 0.2s; }
.footer-links a:hover { color: white; }


/* ==========================================================================
   弹窗 (Modal)
   ========================================================================== */
.modal-overlay { display: none; position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 50; align-items: center; justify-content: center; padding: 1rem; }
.modal-content { background-color: white; padding: 2rem; border-radius: 0.5rem; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); max-width: 24rem; margin-left: auto; margin-right: auto; text-align: center; }
.modal-content h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 1rem 0; }
.modal-content p { margin: 0 0 1.5rem 0; color: #475569; }
.modal-content img { margin: 0 auto 1.5rem auto; }
.modal-close-btn { background-color: #e2e8f0; padding: 0.5rem 1.5rem; border-radius: 0.5rem; border: none; cursor: pointer; transition: background-color 0.2s; }
.modal-close-btn:hover { background-color: #cbd5e1; }


/* ==========================================================================
   响应式布局 (Responsive)
   ========================================================================== */
@media (min-width: 640px) { /* sm breakpoint */
    .header-button { display: inline-block; }
    .hero-section { padding-top: 8rem; padding-bottom: 8rem; }
    .hero-content .app-icon { width: 8rem; height: 8rem; }
    .hero-content h1 { font-size: 3.75rem; }
    .hero-content p { font-size: 1.25rem; }
    .section-header h2 { font-size: 2.25rem; }
    .feature-grid { gap: 3rem; }
    .screenshot-container { gap: 2rem; }
    .membership-card .price-overlay { top: 6rem; right: 1.5rem; }
}

@media (min-width: 768px) { /* md breakpoint */
    .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-links { flex-direction: row; gap: 1rem; }
    .story-text h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .story-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
    .membership-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   按钮动画效果
   ========================================================================== */

@keyframes gentle-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.membership-card .card-button {
  animation: gentle-bounce 2s infinite;
}

/* ==========================================================================
   新增：小屏幕换行调整
   ========================================================================== */
@media (max-width: 639px) {
    .membership-footer .contact-info {
        display: block; /* 将 span 变为块级元素，使其占据一整行 */
        margin-top: 0.25rem; /* 添加一点上边距，使其看起来更舒适 */
    }
}