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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: #111;
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 导航 */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 50px;
}

nav .logo {
    font-size: 1.8em;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    margin-left: auto;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    transition: 0.3s;
}

nav ul li a:hover {
    color: #ff6600;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    animation: fadeInUp 1s forwards;
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    animation: fadeInUp 1s forwards 0.5s;
}

.btn {
    padding: 12px 30px;
    background: #ff6600;
    color: white;
    border-radius: 8px;
    font-size: 1.1em;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.1);
    background: #e65c00;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Features */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 80px 20px;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    margin: 15px;
    width: 250px;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.feature.active {
    opacity: 1;
    transform: translateY(0);
}

.feature img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #222;
    margin: 80px auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 900px;
    color: white;
    animation: fadeInScale 0.4s ease-out;
    position: relative;
}

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

.close:hover {
    color: #ff6600;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* FAQ */
.faq-item {
    margin-top: 10px;
}

.faq-content {
    display: none;
    padding: 10px 0;
    color: #ccc;
}

.faq-toggle {
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    text-align: left;
    border-radius: 5px;
    cursor: pointer;
}

.faq-toggle:hover {
    background: #444;
}

/* Product Section (二级 Modal) */
.product-section {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
/* 统一按钮样式 */
.btn, .card button, .detail-toggle, #productInfoBtn {
    padding: 12px 30px;
    background: #ff6600;
    color: white;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    text-align: center;
}

/* 按钮悬停效果 */
.btn:hover, .card button:hover, .detail-toggle:hover, #productInfoBtn:hover {
    transform: scale(1.1);
    background: #e65c00;
}

/* 详细信息按钮样式 */
.detail-toggle {
    margin-top: 10px;
    width: 100%;
}

/* 统一按钮样式与其他按钮一致 */
#productInfoBtn {
    padding: 12px 30px;
    background: #ff6600;
    color: white;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    text-align: center;
}

/* 查看详情按钮样式 */
#productInfoBtn:hover, .detail-toggle:hover {
    transform: scale(1.1);
    background: #e65c00;
}

/* 产品优势列表居中 */
.product-advantages {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* 让每一项居中 */
.product-advantages ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-advantages ul li {
    margin: 10px 0;
}

/* 产品详细信息居中 */
.product-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 让每一项详细信息居中 */
.product-details .detail-item {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-details .detail-item button {
    margin-top: 10px;
}

/* 隐藏所有的占位符内容 */
.detail-content {
    display: none;
    padding: 10px 0;
    color: #ccc;
}

/* Pricing Cards (三级 Modal) */
.pricing-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 220px;
    margin: 10px;
    padding: 20px;
    text-align: center;
    position: relative;
}

.card .tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6600;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8em;
}

.card h4 {
    margin-bottom: 10px;
    color: #ff6600;
}

.card .price {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
    text-align: left;
    display: inline-block;
}

.card ul li {
    margin: 5px 0;
}

.card button {
    padding: 8px 20px;
    background: #ff6600;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.card button:hover {
    background: #e65c00;
}


/* 四级页面内容 */
.level4-content {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center; /* 使内容居中 */
    justify-content: center; /* 使内容居中 */
    padding: 20px;
    margin: 0 auto; /* 确保居中对齐 */
    text-align: center; /* 使文本居中 */
    position: relative; /* 使关闭按钮固定 */
}

/* 关闭按钮固定在右上角 */
.level4-close {
    position: absolute;
    top: 20px;
    right: 20px;  /* 将按钮固定在右上角 */
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
}

.level4-close:hover {
    color: #ff6600;
}

/* 四级页面容器 */
.level4-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 使按钮和文本框居中 */
    align-items: center; /* 垂直居中 */
    width: 100%;
    gap: 20px; /* 设置按钮和文本框之间的间距 */
}

/* 左侧图片 */
.level4-left {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

/* 右侧内容 */
.level4-right {
    flex: 2;
    min-width: 300px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* 使右侧内容居中 */
    justify-content: center; /* 垂直居中 */
}

/* 按钮样式 */
.payment-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* 使按钮居中 */
    margin-bottom: 20px;
}

/* 按钮样式 */
.payment-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    background: #ff6600;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.payment-buttons button:hover {
    background: #e65c00;
}
/* 付款文本框前的标签样式 */
.payment-label {
    font-weight: bold;
    margin-right: 10px; /* 与文本框之间留空隙 */
    color: #fff; /* 设置标签的颜色 */
}
/* 文本框样式 */
.payment-text-container {
    display: flex;
    align-items: center;
    justify-content: center; /* 使文本框居中 */
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 500px; /* 限制文本框的最大宽度 */
}

/* 文本框 */
.payment-text {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: none;
}

/* 复制按钮样式 */
.copy-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.copy-btn:hover {
    background: #0056b3;
}

/* 超链接样式 */
.level4-link {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
    margin-top: 20px; /* 为超链接添加顶部间距 */
}
/* 四级 Modal 内容整体自适应 */
.level4-content {
    max-width: 90%;         /* 根据屏幕大小自适应 */
    width: auto;            /* 宽度自动调整 */
    display: flex;
    flex-direction: column;
    align-items: center;    /* 内容整体居中 */
    padding: 20px;
    box-sizing: border-box;
}

/* 四级 Modal 内部容器 */
.level4-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;  /* 居中布局 */
    gap: 20px;                /* 图片和文字之间留空隙 */
    width: 100%;
}

/* 左侧图片自适应 */
.level4-left img {
    max-width: 100%;
    height: auto;          /* 高度自动，避免变形 */
    border-radius: 12px;
    object-fit: contain;   /* 保证图片完整显示 */
}

/* 右侧内容 */
.level4-right {
    flex: 1;
    min-width: 280px;
    max-width: 500px;       /* 防止文字太宽 */
    display: flex;
    flex-direction: column;
    gap: 15px;              /* 每个 section 间距 */
}

/* 每个 section */
.level4-section {
    text-align: center;     /* 居中显示文字 */
    word-wrap: break-word;  /* 避免长文字溢出 */
}
/* 图片放大 Modal */
.image-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 2000; /* 比四级页面更高 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9); /* 背景半透明 */
}

/* 放大的图片 */
.image-modal-content {
    display: block;
    margin: 5% auto;
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
}

/* 关闭按钮 */
.image-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.level4-link:hover {
    background: #0056b3;
}
/* 让图片放大层永远盖过其他模态框（你的 .modal z-index=2000） */
.image-modal { z-index: 3000; }

/* 移动端优化：<= 480px */
@media (max-width: 480px) {
  .modal-content {
    width: 96%;
    max-width: none;
    margin: 12px auto;
    padding: 16px;
    border-radius: 12px;
  }
  .pricing-cards {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .card {
    width: 100%;
    margin: 0;
    padding: 16px;
  }
  .level4-content {
    width: 96%;
    max-width: none;
    padding: 16px;
  }
  .level4-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .level4-left img {
    max-height: 40vh;
    object-fit: contain;
  }
  .payment-buttons {
    gap: 8px;
    justify-content: stretch;
  }
  .payment-buttons button {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;    /* 更易触达 */
  }
  .payment-text-container {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-width: none;
  }
  .copy-btn {
    width: 100%;
    padding: 12px;
  }
  .close, .level4-close {
    top: 10px; right: 10px; font-size: 28px;
  }
}

