/* ===== Base ===== */
/* 手机端适配 */
@media (max-width: 768px) {
    html, body {
        font-size: 16px; /* 重置基础字号 */
    }

    .hero h1 {
        font-size: 1.8rem; /* 比桌面小一些 */
    }

    .hero .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr; /* 手机上一列排 */
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', sans-serif;
    color: #fff;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
}

/* ===== Header ===== */
@media (max-width: 768px) {
    #site-header .launch-btn{
        display: none;
    }
}
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.17);
    animation: slide-down 0.7s;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    height: 40px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.launch-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    background: linear-gradient(90deg,#9445ff,#5a25e5);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: transform .2s ease-in-out;
}
.launch-btn:hover {
    transform: scale(1.05);
}
.launch-ceo-btn {
    margin: 1rem auto 2rem;
    text-decoration: underline;
    color: #332;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    background: linear-gradient(90deg, #45ffce, #25e5a6);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: transform .2s ease-in-out;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-align: center;
}

.launch-ceo-btn:hover {
    transform: scale(1.05);
    color: #fff;
}

.launch-ceo-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 20%, transparent 70%);
    transform: scale(0);
    transition: transform 0.4s ease;
}

.launch-ceo-btn:hover::after {
    transform: scale(1);
}
.language-toggle {
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: background 0.2s;
    color: #444;
}
.language-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* ===== Hero ===== */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    text-align: center;
}

.hero .container{
    background-size: cover;
    background-position: center center;
    background-image: url(../static/product_bckgnd.jpg);
}

.hero .launch-btn{
    display: inline-block;
    margin: 1rem auto 2rem;
}
@media (min-width: 768px) {
    .hero .launch-btn{
        display: none;
    }
    .launch-ceo-btn{

    }
}
@media (max-width: 388px) {
    .launch-ceo-btn{
        margin: 0 !important;
    }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg,#9445ff,#5a25e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    max-width: 600px;
    margin: 1rem auto 2rem;
    color: #ccc;
    font-size: 1.1rem;
}

.hero-img {
    max-width: 900px;
    margin: auto;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(148,69,255,0.4);
}

/* ===== Features ===== */
.features {
    background:#e4f5f8;
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
}

.feature-item {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease-in-out;
    background: #fff;
}
.feature-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(90deg,#9445ff,#5a25e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-item p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #777;
    font-size: 0.85rem;
}
/* ===== Newsletter in Footer ===== */
.newsletter {
    margin-top: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.newsletter h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1a093f;
}

.newsletter p {
    font-size: 0.95rem;
    color: #555;
    max-width: 500px;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    min-width: 220px;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: #9445ff;
}

.newsletter-form button {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg,#9445ff,#5a25e5);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .newsletter {
        text-align: center;
    }
    .newsletter p {
        margin-left: auto;
        margin-right: auto;
    }
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    .newsletter-form input {
        width: 100%;
    }
    .newsletter-form button {
        width: 100%;
    }
}
/* ====== Animations ====== */

/* Hero 淡入上移 */
.hero h1,
.hero .subtitle,
.hero .hero-img {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}
.hero .subtitle {
    animation-delay: 0.3s;
}
.hero .hero-img {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features 卡片逐个浮现 */
.feature-item {
    opacity: 0;
    transform: scale(0.95);
    animation: featureFade 0.6s ease forwards;
}
.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }
.feature-item:nth-child(4) { animation-delay: 0.8s; }

@keyframes featureFade {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 按钮 hover 光晕 */
.launch-btn {
    position: relative;
    overflow: hidden;
}
.launch-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 20%, transparent 70%);
    transform: scale(0);
    transition: transform 0.4s ease;
}
.launch-btn:hover::after {
    transform: scale(1);
}

/* Newsletter 输入框聚焦呼吸光效 */
.newsletter-form input:focus {
    box-shadow: 0 0 10px rgba(148,69,255,0.5);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(148,69,255,0.5); }
    50% { box-shadow: 0 0 20px rgba(148,69,255,0.8); }
}
/* ===== Modal Styles (清新版) ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.4);
    backdrop-filter: blur(6px);
}

.modal-content {
    background-color: #f9f7ff; /* 清新淡紫背景 */
    margin: 8% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 8px 20px rgba(148,69,255,0.2); /* 阴影轻一些 */
    animation: modalShow 0.2s ease-out; /* 弹出快一些 */
    position: relative;
    color: #1a093f; /* 文字深色，易读 */
}

@keyframes modalShow {
    from { opacity: 0; transform: scale(0.9);}
    to { opacity: 1; transform: scale(1);}
}

.modal-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg,#9445ff,#5a25e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.modal input {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #dcd6f7;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff; /* 白色输入框 */
    color: #1a093f;
}
.modal input:focus {
    border-color: #9445ff;
    box-shadow: 0 0 8px rgba(148,69,255,0.3);
}

.modal button {
    width: 100%;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 30px;
    background: linear-gradient(90deg,#a685ff,#5a25e5); /* 更清新渐变 */
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease-in-out;
}
.modal button:hover {
    transform: scale(1.03);
}

.modal .close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9445ff;
}
.post-preview {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #f9f9f9;
    text-align: center;
}

.read-more-btn {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.read-more-btn:hover {
    background: #e55a2b;
}