/* ============================================
   PlayN Tech-Enhanced Stylesheet
   游戏研发平台 - 科技感增强样式
   ============================================ */

/* --- 全局基调：深色赛博朋克 --- */
body {
    background: #0a0e17 !important;
    color: #c8d6e5;
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
    overflow-x: hidden;
}

/* --- 顶部栏：透明磨砂玻璃 --- */
.topbar {
    background: rgba(10, 14, 23, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 255, 170, 0.15);
    height: 36px !important;
    line-height: 36px;
    position: relative;
    z-index: 100;
}

.topbar a {
    color: rgba(200, 214, 229, 0.7) !important;
    transition: color 0.3s, text-shadow 0.3s;
    font-size: 13px;
}

.topbar a:hover {
    color: #00ffaa !important;
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
}

/* --- Header 导航：悬浮玻璃感 --- */
.header {
    background: rgba(10, 14, 23, 0.75) !important;
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(0, 255, 170, 0.08);
    height: 90px !important;
    position: relative;
    z-index: 99;
    transition: all 0.4s ease;
}

.header .area {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .area a img {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 255, 170, 0.3));
    transition: filter 0.3s;
}

.header .area a img:hover {
    filter: brightness(1.4) drop-shadow(0 0 20px rgba(0, 255, 170, 0.6));
}

/* --- 导航链接：霓虹下划线动效 --- */
.nav li {
    margin: 0 22px !important;
}

.nav a {
    color: rgba(200, 214, 229, 0.8) !important;
    font-size: 15px !important;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffaa, transparent);
    box-shadow: 0 0 8px rgba(0, 255, 170, 0.6);
    transition: width 0.4s ease, left 0.4s ease;
}

.nav a:hover::after {
    width: 100%;
    left: 0;
}

.nav a:hover,
.nav a:hover small {
    color: #00ffaa !important;
    text-shadow: 0 0 12px rgba(0, 255, 170, 0.4);
}

.nav small {
    color: rgba(200, 214, 229, 0.4) !important;
    font-size: 9px !important;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

/* --- Column 横幅：深色渐变 + 网格纹理 --- */
.column {
    background: linear-gradient(135deg, #0a0e17 0%, #141b2d 50%, #0d1220 100%) !important;
    position: relative;
    overflow: hidden;
    padding-top: 65px !important;
    padding-bottom: 55px !important;
}

.column::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 170, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 170, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.column-title dt {
    color: #ffffff !important;
    font-size: 28px !important;
    text-shadow: 0 0 30px rgba(0, 255, 170, 0.15);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.column-title dd {
    color: rgba(200, 214, 229, 0.6) !important;
    position: relative;
    z-index: 1;
}

/* --- "我们在做什么" 标题区域 --- */
.product-tit {
    background: linear-gradient(180deg, #0a0e17 0%, #0f1524 100%) !important;
    border-bottom-color: rgba(0, 255, 170, 0.1) !important;
}

.product-tit h2 {
    color: #00ffaa !important;
    font-size: 36px !important;
    text-shadow: 0 0 20px rgba(0, 255, 170, 0.3), 0 0 40px rgba(0, 255, 170, 0.1);
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.product-tit h2::after {
    content: '// GAME DEV';
    display: block;
    font-size: 11px;
    letter-spacing: 4px;
    color: rgba(0, 255, 170, 0.4);
    font-weight: normal;
    text-transform: uppercase;
    margin-top: 8px;
    text-shadow: none;
}

.product-tit span {
    background: none !important;
    display: block;
    width: 60px !important;
    height: 2px !important;
    margin: 15px auto 20px !important;
    background: linear-gradient(90deg, transparent, #00ffaa, transparent) !important;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.4);
    text-indent: 0 !important;
    text-indent: -9999px;
}

.product-tit p {
    color: rgba(200, 214, 229, 0.6) !important;
    font-size: 14px;
    line-height: 26px;
    max-width: 700px;
    margin: 0 auto;
}

/* --- 产品内容区域 --- */
.product-contents {
    background: linear-gradient(180deg, #0f1524 0%, #0a0e17 100%) !important;
    border-top-color: rgba(0, 255, 170, 0.3) !important;
}

.circle {
    background: none !important;
    width: 12px !important;
    height: 12px !important;
    margin-left: -6px !important;
    background: #00ffaa !important;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.8), 0 0 30px rgba(0, 255, 170, 0.3);
    border-radius: 50% !important;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 255, 170, 0.8), 0 0 30px rgba(0, 255, 170, 0.3); }
    50% { box-shadow: 0 0 25px rgba(0, 255, 170, 1), 0 0 50px rgba(0, 255, 170, 0.5); }
}

/* --- 产品卡片：玻璃态 + 悬浮光效 --- */
.product-list {
    background: rgba(15, 21, 36, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 170, 0.08) !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    margin-left: 20px !important;
    margin-bottom: 20px;
}

.product-list::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(0, 255, 170, 0.05) 10%, transparent 20%);
    animation: cardSweep 8s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
}

.product-list:hover::before {
    opacity: 1;
}

@keyframes cardSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-list::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: rgba(10, 14, 23, 0.85);
    border-radius: 15px;
    z-index: 0;
}

.product-list > * {
    position: relative;
    z-index: 1;
}

.product-list:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: rgba(0, 255, 170, 0.2) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 255, 170, 0.08) !important;
}

.product-list i {
    width: 90px !important;
    height: 90px !important;
    background: none !important;
    position: relative;
}

/* 产品图标用 CSS 覆盖替代图片 */
.product-list .ico-pl-1 i::before,
.product-list .ico-pl-2 i::before,
.product-list .ico-pl-3 i::before,
.product-list .ico-pl-4 i::before,
.product-list .ico-pl-5 i::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 170, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-list .ico-pl-1 i::before {
    background: radial-gradient(circle, rgba(0, 255, 170, 0.15), transparent);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
    border-color: rgba(0, 255, 170, 0.4);
}

.product-list .ico-pl-2 i::before {
    background: radial-gradient(circle, rgba(56, 184, 232, 0.15), transparent);
    box-shadow: 0 0 20px rgba(56, 184, 232, 0.2);
    border-color: rgba(56, 184, 232, 0.4);
}

.product-list .ico-pl-3 i::before {
    background: radial-gradient(circle, rgba(24, 189, 156, 0.15), transparent);
    box-shadow: 0 0 20px rgba(24, 189, 156, 0.2);
    border-color: rgba(24, 189, 156, 0.4);
}

.product-list .ico-pl-4 i::before {
    background: radial-gradient(circle, rgba(150, 94, 191, 0.15), transparent);
    box-shadow: 0 0 20px rgba(150, 94, 191, 0.2);
    border-color: rgba(150, 94, 191, 0.4);
}

.product-list .ico-pl-5 i::before {
    background: radial-gradient(circle, rgba(250, 82, 88, 0.15), transparent);
    box-shadow: 0 0 20px rgba(250, 82, 88, 0.2);
    border-color: rgba(250, 82, 88, 0.4);
}

.product-list span {
    color: #e2e8f0 !important;
    font-size: 18px !important;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.product-list a.ico-pl-1:hover span { color: #00ffaa !important; text-shadow: 0 0 15px rgba(0, 255, 170, 0.5); }
.product-list a.ico-pl-2:hover span { color: #38b8e8 !important; text-shadow: 0 0 15px rgba(56, 184, 232, 0.5); }
.product-list a.ico-pl-3:hover span { color: #18bd9c !important; text-shadow: 0 0 15px rgba(24, 189, 156, 0.5); }
.product-list a.ico-pl-4:hover span { color: #965ebf !important; text-shadow: 0 0 15px rgba(150, 94, 191, 0.5); }

.product-list p {
    color: rgba(200, 214, 229, 0.5) !important;
    border-top-color: rgba(200, 214, 229, 0.1) !important;
    white-space: normal !important;
}

.product-list p a {
    color: #00ffaa !important;
    transition: text-shadow 0.3s;
}

.product-list p a:hover {
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
    text-decoration: none !important;
}

/* --- Footer：深色科技感 --- */
.footer {
    background: linear-gradient(180deg, #080b12 0%, #050710 100%) !important;
    border-top: 1px solid rgba(0, 255, 170, 0.08);
    height: auto !important;
    padding-top: 50px !important;
    padding-bottom: 40px !important;
}

.footer-left dl {
    color: rgba(200, 214, 229, 0.7) !important;
}

.footer-left dt {
    color: #00ffaa !important;
    font-size: 15px !important;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.2);
}

.footer-left dd {
    font-size: 13px !important;
    line-height: 2.2 !important;
}

.footer-left a {
    color: rgba(200, 214, 229, 0.5) !important;
    transition: all 0.3s;
}

.footer-left a:hover {
    color: #00ffaa !important;
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.3);
    text-decoration: none !important;
}

.footer-right {
    border-left-color: rgba(0, 255, 170, 0.15) !important;
}

.footer-right dt {
    color: #00ffaa !important;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.2);
}

.footer-right dd {
    color: rgba(200, 214, 229, 0.6) !important;
}

/* --- Modal 对话框：玻璃态 --- */
.pn-modal-content {
    background: rgba(15, 21, 36, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 170, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 255, 170, 0.05) !important;
}

.pn-modal-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 255, 170, 0.1) !important;
}

.pn-modal-title {
    color: #00ffaa !important;
    text-shadow: 0 0 15px rgba(0, 255, 170, 0.3);
    letter-spacing: 2px;
}

.pn-modal-header .pn-close {
    color: rgba(200, 214, 229, 0.5) !important;
    text-shadow: none !important;
    opacity: 1 !important;
    font-size: 28px;
    transition: color 0.3s;
}

.pn-modal-header .pn-close:hover {
    color: #00ffaa !important;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

.pn-modal-body .name {
    color: rgba(200, 214, 229, 0.8) !important;
}

.pn-form-control {
    background: rgba(10, 14, 23, 0.8) !important;
    border: 1px solid rgba(0, 255, 170, 0.15) !important;
    color: #e2e8f0 !important;
    border-radius: 8px !important;
    transition: all 0.3s;
    box-shadow: none !important;
}

.pn-form-control:focus {
    border-color: #00ffaa !important;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.15), inset 0 0 5px rgba(0, 255, 170, 0.05) !important;
}

.pn-form-control::placeholder {
    color: rgba(200, 214, 229, 0.3) !important;
}

.btn-pay {
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.2), rgba(0, 200, 130, 0.2)) !important;
    border: 1px solid rgba(0, 255, 170, 0.4) !important;
    color: #00ffaa !important;
    border-radius: 8px !important;
    transition: all 0.3s;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.1) !important;
}

.btn-pay:hover {
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.35), rgba(0, 200, 130, 0.3)) !important;
    box-shadow: 0 0 25px rgba(0, 255, 170, 0.2) !important;
    transform: translateY(-1px);
}

.btn-return {
    background: rgba(30, 40, 60, 0.5) !important;
    border: 1px solid rgba(200, 214, 229, 0.1) !important;
    color: rgba(200, 214, 229, 0.6) !important;
    border-radius: 8px !important;
    transition: all 0.3s;
    box-shadow: none !important;
}

.btn-return:hover {
    border-color: rgba(0, 255, 170, 0.3) !important;
    color: #00ffaa !important;
}

.error-prompt {
    color: #ff6b6b !important;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.3);
}

/* --- 滚动条美化 --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0e17;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 170, 0.2);
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 170, 0.4);
}

/* --- 选中文本颜色 --- */
::selection {
    background: rgba(0, 255, 170, 0.2);
    color: #00ffaa;
}

/* --- 扫描线覆盖层 --- */
.tech-scanline-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 255, 170, 0.008) 2px,
        rgba(0, 255, 170, 0.008) 4px
    );
}

/* --- 粒子背景 Canvas --- */
.tech-particles-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* --- 渐变光斑装饰 --- */
.tech-glow-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.15;
}

.tech-glow-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: #00ffaa;
    top: 10%;
    left: -100px;
    animation: orbFloat1 15s ease-in-out infinite;
}

.tech-glow-orb.orb-2 {
    width: 300px;
    height: 300px;
    background: #38b8e8;
    bottom: 20%;
    right: -80px;
    animation: orbFloat2 18s ease-in-out infinite;
}

.tech-glow-orb.orb-3 {
    width: 250px;
    height: 250px;
    background: #965ebf;
    top: 50%;
    left: 50%;
    animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(80px, 60px); }
    66% { transform: translate(-30px, 100px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-60px, -80px); }
    66% { transform: translate(40px, -40px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-100px, -60px) scale(1.2); }
}

/* --- 打字机光标效果（标题用） --- */
.tech-typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: #00ffaa;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- 全局过渡 --- */
* {
    transition-property: color, background-color, border-color, box-shadow, opacity;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

/* 排除不应有过渡的元素 */
input, textarea, canvas, video, img {
    transition: none !important;
}

/* --- 响应式微调 --- */
@media (max-width: 1200px) {
    .area {
        width: 100% !important;
        padding: 0 20px;
        box-sizing: border-box;
    }
}
