/* style.css - 星核發卡 3D 互動增強版 */

:root{
    --primary:#00f3ff;
    --secondary:#ff00c8;
    --good:#00ff88;
    --warn:#ffcc00;
    --bg:#05060a;
    --panel:rgba(12,15,35,0.82);
    --border:rgba(0,255,255,0.18);
    --text:#e8fbff;
    --muted:#a0d2ff;
}

*{margin:0;padding:0;box-sizing:border-box}

body{
    background:#000;
    color:var(--primary);
    font-family:'Noto Sans TC',sans-serif;
    min-height:100vh;
    overflow-x:hidden;
    position:relative;
}

/* 3D 背景容器 */
#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* 滑鼠追蹤光暈 */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,243,255,0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transition: transform 0.2s ease-out;
    mix-blend-mode: screen;
}

/* 載入動畫 */
.loading-screen {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s, visibility 0.8s;
}

.loading-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    background: linear-gradient(90deg, var(--primary), #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(0,243,255,0.2);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    to { width: 100%; }
}

/* 滾動進度條 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    z-index: 1000;
    box-shadow: 0 0 10px var(--primary);
}

/* 返回頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 2px solid rgba(0,243,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0,243,255,0.4);
    transform: perspective(1000px) rotateX(0deg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: perspective(1000px) rotateX(10deg) translateY(-10px);
    box-shadow: 0 12px 48px rgba(0,243,255,0.6);
}

.back-to-top::before {
    content: '↑';
    font-size: 28px;
    color: #000;
    font-weight: bold;
}

/* AI 助手按鈕 */
.ai-assistant {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff00c8, #8000ff);
    border: 2px solid rgba(255,0,200,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(255,0,200,0.4);
    animation: float 3s ease-in-out infinite;
}

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

.ai-assistant::before {
    content: '🤖';
    font-size: 28px;
}

.ai-assistant:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 48px rgba(255,0,200,0.6);
}

/* AI 對話框 */
.ai-chat {
    position: fixed;
    bottom: 180px;
    right: 30px;
    width: 320px;
    max-height: 400px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 998;
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 64px rgba(0,0,0,0.6);
}

.ai-chat.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ai-chat-header {
    font-family: 'Orbitron', monospace;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-close {
    cursor: pointer;
    font-size: 20px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.ai-chat-close:hover {
    opacity: 1;
}

.ai-chat-content {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.ai-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-action-btn {
    padding: 10px;
    background: rgba(0,243,255,0.1);
    border: 1px solid rgba(0,243,255,0.3);
    border-radius: 8px;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-action-btn:hover {
    background: rgba(0,243,255,0.2);
    transform: translateX(5px);
}

.container{
    width:min(1180px,92vw);
    margin:0 auto;
    padding:18px 0 60px;
    position: relative;
    z-index: 1;
}

/* Topbar */
.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:14px 0;
    flex-wrap:wrap;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo{
    font-family:'Orbitron',monospace;
    font-size:1.8rem;
    letter-spacing:2px;
    background:linear-gradient(90deg,var(--primary),#fff,var(--secondary));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    text-shadow:0 0 18px rgba(0,243,255,0.35);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0,243,255,0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(0,243,255,0.8)); }
}

.tag{
    font-family:'Orbitron',monospace;
    font-size:.86rem;
    color:rgba(255,255,255,.65);
    letter-spacing:1px;
    border:1px solid rgba(255,255,255,.14);
    padding:6px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.06);
}

.nav{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.nav-toggle{
    display:none;
    width:42px;
    height:42px;
    border-radius:12px;
    border:1px solid rgba(0,255,255,0.3);
    background:rgba(0,30,60,0.65);
    color:var(--text);
    font-size:1.1rem;
    cursor:pointer;
}

.nav-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.55);
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease;
    z-index:1000;
}

.nav-overlay.active{
    opacity:1;
    pointer-events:auto;
}

.navbtn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 16px;
    border-radius:14px;
    border:1px solid rgba(0,255,255,0.28);
    background:rgba(0,30,60,0.55);
    color:var(--text);
    text-decoration:none;
    font-family:'Orbitron',monospace;
    font-size:.92rem;
    letter-spacing:1px;
    transition:all .25s;
    min-height:44px;
    position: relative;
    overflow: hidden;
}

.navbtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0,243,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.navbtn:hover::before {
    width: 300px;
    height: 300px;
}

.navbtn:hover{
    transform:translateY(-3px) scale(1.05);
    box-shadow:0 8px 24px rgba(0,255,255,0.35);
    background:rgba(0,60,120,0.65);
}

.navbtn.pink{
    border-color:rgba(255,0,200,.28);
    background:rgba(60,0,40,.45);
}

.navbtn.pink:hover{
    box-shadow:0 8px 24px rgba(255,0,200,0.35);
    background:rgba(90,0,60,.55);
}

.navbtn.green{
    border-color:rgba(0,255,0,.22);
    background:rgba(0,50,0,.35);
}

.navbtn.green:hover{
    box-shadow:0 8px 24px rgba(0,255,0,0.25);
    background:rgba(0,80,0,.42);
}

@media (max-width: 900px){
    .topbar{
        align-items:flex-start;
    }
    .tag{
        display:none;
    }
    .nav-toggle{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        margin-left:auto;
    }
    .nav{
        position:fixed;
        top:0;
        right:0;
        height:100vh;
        width:min(82vw, 320px);
        padding:80px 18px 24px;
        background:rgba(6,12,24,0.96);
        border-left:1px solid rgba(0,255,255,0.18);
        flex-direction:column;
        gap:12px;
        transform:translateX(100%);
        transition:transform .25s ease;
        z-index:1001;
    }
    .nav.is-open{
        transform:translateX(0);
    }
    .navbtn{
        width:100%;
        justify-content:flex-start;
    }
    body.nav-open{
        overflow:hidden;
    }
}

/* Hero */
.hero{
    margin-top:20px;
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:22px;
    padding:30px 24px;
    box-shadow:0 20px 80px rgba(0,0,0,.7);
    backdrop-filter:blur(20px);
    position:relative;
    overflow:hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.hero::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    right:0;
    height:3px;
    background:linear-gradient(90deg,var(--primary),var(--secondary));
    opacity:.8;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,243,255,0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.heroGrid{
    display:grid;
    grid-template-columns: 1.2fr .8fr;
    gap:24px;
    align-items:center;
    position: relative;
    z-index: 1;
}

@media(max-width:900px){
    .heroGrid{grid-template-columns:1fr}
}

.heroTitle{
    font-family:'Orbitron',monospace;
    font-size:2.6rem;
    letter-spacing:2px;
    line-height:1.15;
    margin-top:4px;
    background:linear-gradient(90deg,var(--primary),#fff,var(--secondary));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    text-shadow:0 0 18px rgba(0,243,255,0.3);
    font-weight:700;
    animation: titleFloat 4s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.heroSub{
    margin-top:16px;
    color:var(--muted);
    line-height:1.8;
    font-size:1.08rem;
}

.heroBadges{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:16px;
}

.badge{
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.06);
    color:rgba(255,255,255,.8);
    padding:10px 14px;
    border-radius:999px;
    font-size:.92rem;
    transition: all 0.3s;
    cursor: default;
}

.badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}

.badge.good{
    border-color:rgba(0,255,136,.28);
    background:rgba(0,255,136,.08);
    color:#b9ffe3;
}

.badge.warn{
    border-color:rgba(255,204,0,.22);
    background:rgba(255,204,0,.08);
    color:#ffeaa3;
}

.heroRight{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.cta{
    display:flex;
    flex-direction:column;
    gap:12px;
    padding:18px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(0,0,0,.22);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to { left: 100%; }
}

.ctaTitle{
    font-family:'Orbitron',monospace;
    color:#fff;
    letter-spacing:1px;
    font-size: 1.1rem;
}

.ctaDesc{
    color:rgba(255,255,255,.65);
    font-size:.98rem;
    line-height:1.6;
}

.ctaBtns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

@media(max-width:520px){
    .ctaBtns{grid-template-columns:1fr}
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:14px 18px;
    border-radius:16px;
    border:1px solid rgba(0,255,255,0.35);
    background:rgba(0,30,60,0.75);
    color:var(--primary);
    font-family:'Orbitron',monospace;
    letter-spacing:1px;
    text-decoration:none;
    transition:all .3s;
    min-height:50px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn:hover{
    transform:translateY(-3px) scale(1.05);
    box-shadow:0 12px 32px rgba(0,255,255,0.5);
    background:rgba(0,60,120,0.8);
}

.btn.pink{
    border-color:rgba(255,0,200,.35);
    background:rgba(60,0,40,.55);
    color:#ffb3ea;
}

.btn.pink:hover{
    box-shadow:0 12px 32px rgba(255,0,200,0.35);
    background:rgba(90,0,60,.65);
}

.btn.green{
    border-color:rgba(0,255,0,.25);
    background:rgba(0,60,0,.45);
    color:#b9ffcf;
}

.btn.green:hover{
    box-shadow:0 12px 32px rgba(0,255,0,0.25);
    background:rgba(0,90,0,.52);
}

/* Sections */
.sectionTitle{
    margin-top:40px;
    font-family:'Orbitron',monospace;
    letter-spacing:1px;
    color:#fff;
    font-size:1.6rem;
    text-align: center;
}

.grid3{
    margin-top:24px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

@media(max-width:900px){
    .grid3{grid-template-columns:1fr}
}

.card{
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:20px;
    padding:24px;
    box-shadow:0 16px 50px rgba(0,0,0,.55);
    backdrop-filter:blur(10px);
    position:relative;
    overflow:hidden;
    transition:transform .3s, box-shadow .3s;
    transform-style: preserve-3d;
}

.card:hover{
    transform:translateY(-8px) scale(1.02);
    box-shadow:0 24px 80px rgba(0,243,255,0.3);
}

.card::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    right:0;
    height:2px;
    background:linear-gradient(90deg,transparent,var(--primary),transparent);
    opacity:.55;
}

.cardIcon{
    font-size:3rem;
    margin-bottom:14px;
    filter:drop-shadow(0 0 15px rgba(0,243,255,.4));
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.cardTitle{
    font-family:'Orbitron',monospace;
    color:#fff;
    letter-spacing:1px;
    font-size:1.3rem;
}

.cardText{
    margin-top:12px;
    color:rgba(255,255,255,.75);
    line-height:1.8;
    font-size:1.02rem;
}

/* 3D 卡片效果 */
.card-3d {
    perspective: 1000px;
}

.card-3d-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Steps */
.steps{
    margin-top:24px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

@media(max-width:900px){
    .steps{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:520px){
    .steps{grid-template-columns:1fr}
}

.step{
    background:rgba(0,0,0,.3);
    border:1px solid rgba(255,255,255,.12);
    border-radius:18px;
    padding:22px;
    text-align:center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,243,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.step:hover::before {
    opacity: 1;
}

.step:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(0,243,255,0.3);
}

.stepNo{
    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:'Orbitron',monospace;
    font-size: 1.4rem;
    color:#000;
    background:linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow:0 4px 20px rgba(0,243,255,.4);
    margin:0 auto;
    transition: transform 0.3s;
}

.step:hover .stepNo {
    transform: rotate(360deg) scale(1.1);
}

.stepT{
    margin-top:14px;
    color:#fff;
    font-weight:600;
    font-size:1.15rem;
}

.stepD{
    margin-top:10px;
    color:rgba(255,255,255,.7);
    line-height:1.7;
    font-size:1rem;
}

/* FAQ */
.faq{
    margin-top:24px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

@media(max-width:900px){
    .faq{grid-template-columns:1fr}
}

details{
    background:rgba(0,0,0,.3);
    border:1px solid rgba(255,255,255,.12);
    border-radius:18px;
    padding:18px 20px;
    transition: all 0.3s;
}

details[open]{
    border-color:var(--primary);
    box-shadow:0 8px 32px rgba(0,243,255,0.2);
    background: rgba(0,30,60,0.2);
}

summary{
    cursor:pointer;
    list-style:none;
    color:#fff;
    font-weight:600;
    font-size:1.08rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

summary::before {
    content: '▶';
    color: var(--primary);
    transition: transform 0.3s;
    font-size: 14px;
}

details[open] summary::before {
    transform: rotate(90deg);
}

summary::-webkit-details-marker{
    display:none;
}

details p{
    margin-top:12px;
    color:rgba(255,255,255,.7);
    line-height:1.8;
}

/* Footer */
footer{
    margin-top:50px;
    border-top:1px solid rgba(255,255,255,0.1);
    padding:28px 0 0;
    text-align:center;
}

.footWrap{
    display:flex;
    flex-direction:column;
    gap:12px;
    align-items:center;
    justify-content:center;
}

.footTitle{
    font-family:'Orbitron',monospace;
    color:#fff;
    letter-spacing:1px;
    font-size:1.1rem;
}

.footInfo{
    color:rgba(255,255,255,0.7);
    line-height:1.9;
    font-size:1rem;
}

.footLinks{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    justify-content:center;
    margin-top:4px;
}

.footLinks a{
    color:rgba(0,243,255,0.9);
    text-decoration:none;
    border:1px solid rgba(0,255,255,0.22);
    background:rgba(0,30,60,0.35);
    padding:10px 16px;
    border-radius:999px;
    font-size:.96rem;
    transition:all .3s;
}

.footLinks a:hover{
    transform:translateY(-2px) scale(1.05);
    box-shadow:0 6px 20px rgba(0,255,255,0.3);
    background:rgba(0,60,120,0.5);
}

.copyright{
    margin-top:18px;
    color:rgba(255,255,255,0.5);
    font-size:.96rem;
    padding-bottom:10px;
}
/* ============================================================
   通用頁面樣式（登入、註冊、訂單查詢等）
   ============================================================ */

/* 頁面內容區塊 */
.page-content {
    padding: 20px 0;
}

/* 通用面板樣式 */
.panel {
    background: rgba(12, 15, 35, 0.86);
    border: 1px solid rgba(0, 255, 255, 0.18);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00f3ff, #ff00c8);
    opacity: 0.75;
}

.panel-wide {
    max-width: 800px;
}

.panel-full {
    max-width: 100%;
}

/* 面板標題 */
.panel-title {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #00f3ff, #ff00c8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(0, 243, 255, 0.45);
    margin-bottom: 8px;
}

.panel-subtitle {
    text-align: center;
    color: #a0d2ff;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* 表單樣式 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.92rem;
    color: #a7cfff;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.28);
    color: #e8fbff;
    outline: none;
    font-size: 1rem;
    transition: all 0.25s;
}

.form-input:focus {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.18);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* 按鈕樣式 */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 255, 0.35);
    background: rgba(0, 30, 60, 0.75);
    color: #00eeff;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.45);
    background: rgba(0, 60, 120, 0.8);
}

.btn-full {
    width: 100%;
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #e0f7ff;
}

.btn-ghost:hover {
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    border-color: rgba(255, 0, 120, 0.35);
    background: rgba(80, 0, 30, 0.55);
    color: #ffb3d7;
}

.btn-danger:hover {
    box-shadow: 0 0 18px rgba(255, 0, 120, 0.35);
    background: rgba(120, 0, 60, 0.65);
}

.btn-success {
    border-color: rgba(0, 255, 136, 0.35);
    background: rgba(0, 60, 30, 0.55);
    color: #b9ffe3;
}

.btn-success:hover {
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.35);
    background: rgba(0, 100, 50, 0.65);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 訊息提示 */
.alert {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 16px;
    text-align: center;
}

.alert-error {
    border: 1px solid rgba(255, 0, 120, 0.28);
    background: rgba(255, 0, 120, 0.08);
    color: #ffd1e6;
}

.alert-success {
    border: 1px solid rgba(0, 255, 136, 0.22);
    background: rgba(0, 255, 136, 0.08);
    color: #b9ffe3;
}

.alert-info {
    border: 1px solid rgba(0, 200, 255, 0.22);
    background: rgba(0, 200, 255, 0.08);
    color: #c8f4ff;
}

.alert-warning {
    border: 1px solid rgba(255, 200, 0, 0.28);
    background: rgba(255, 200, 0, 0.08);
    color: #fff3c8;
}

/* 步驟指示器 */
.stepper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 14px 0 20px;
    flex-wrap: wrap;
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.22);
    padding: 8px 14px;
    border-radius: 999px;
    font-family: 'Orbitron', monospace;
    font-size: 0.88rem;
    color: #cfefff;
}

.stepper-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.stepper-step.active {
    border-color: rgba(0, 255, 136, 0.35);
    background: rgba(0, 255, 136, 0.08);
    color: #b9ffe3;
}

.stepper-step.active .stepper-dot {
    background: rgba(0, 255, 136, 0.9);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.35);
}

/* 提示文字 */
.hint {
    margin-top: 12px;
    color: #9cc7ff;
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: center;
}

.hint a {
    color: #00eeff;
    text-decoration: none;
}

.hint a:hover {
    text-decoration: underline;
}

/* 密碼顯示切換 */
.password-wrap {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #e0f7ff;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.82rem;
}

.password-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 工具列 */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0;
    flex-wrap: wrap;
    gap: 10px;
}

/* Checkbox 樣式 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cfefff;
    font-size: 0.92rem;
    cursor: pointer;
    user-select: none;
}

/* 連結樣式 */
.link {
    color: #a0d2ff;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* 訂單資訊表格 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.info-table th,
.info-table td {
    padding: 12px 14px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    text-align: left;
}

.info-table th {
    background: rgba(0, 255, 255, 0.08);
    color: #a0d2ff;
    font-weight: 500;
    width: 30%;
}

.info-table td {
    color: #e8fbff;
}

/* 卡密顯示區 */
.card-display {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 255, 255, 0.18);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.card-item {
    font-family: 'Courier New', monospace;
    color: #00ff88;
    padding: 8px 12px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    margin: 6px 0;
    word-break: break-all;
}

/* 狀態徽章 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
}

.status-badge.ok {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #b9ffe3;
}

.status-badge.warn {
    background: rgba(255, 200, 0, 0.15);
    border: 1px solid rgba(255, 200, 0, 0.3);
    color: #fff3c8;
}

.status-badge.info {
    background: rgba(0, 200, 255, 0.15);
    border: 1px solid rgba(0, 200, 255, 0.3);
    color: #c8f4ff;
}

.status-badge.bad {
    background: rgba(255, 0, 120, 0.15);
    border: 1px solid rgba(255, 0, 120, 0.3);
    color: #ffd1e6;
}

/* 返回按鈕列 */
.back-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* 分隔線 */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    margin: 20px 0;
}

/* 文字對齊 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Spacing */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* 響應式調整 */
@media (max-width: 600px) {
    .panel {
        padding: 20px 16px;
        border-radius: 16px;
    }
    
    .panel-title {
        font-size: 1.6rem;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .back-bar {
        flex-direction: column;
    }
    
    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
    }
    
    .info-table th {
        border-bottom: none;
    }

    .back-to-top,
    .ai-assistant {
        width: 48px;
        height: 48px;
        right: 16px;
    }

    .back-to-top {
        bottom: 16px;
    }

    .ai-assistant {
        bottom: 72px;
    }

    .cursor-glow {
        display: none;
    }
}
