/* SUA17-NAVI Navigation Pro - Apple/Xiaomi Design Language */

body {
    background: #000;
    color: #fff;
    margin: 0;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* === 背景 === */
.bg-layer {
    position: fixed; inset: 0; z-index: -2;
    background-size: cover; background-position: center;
}
.bg-overlay {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.05) 70%, rgba(0,0,0,0.5) 100%);
}

/* === 顶部导航 === */
.top-nav {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-nav-inner {
    max-width: 1100px; margin: 0 auto;
    padding: 14px 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; user-select: none;
}
.nav-logo-img {
    width: 36px; height: 36px; border-radius: 10px;
    object-fit: cover; border: 1px solid rgba(255,255,255,0.1);
}
.nav-logo-text {
    font-size: 17px; font-weight: 700; color: #fff;
    letter-spacing: 0.5px;
}
.nav-tools {
    display: flex; align-items: center; gap: 12px;
}
.nav-weather {
    font-size: 13px; color: rgba(255,255,255,0.65);
    display: flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 20px;
    background: rgba(255,255,255,0.06);
}
@media (max-width: 640px) { .nav-weather { display: none; } }
.nav-theme-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.06); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; transition: background 0.2s;
}
.nav-theme-btn:hover { background: rgba(255,255,255,0.12); }
.nav-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    object-fit: cover; border: 1.5px solid rgba(255,255,255,0.15);
}
.nav-user-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.06); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0; overflow: hidden; transition: background 0.2s;
}
.nav-user-btn:hover { background: rgba(255,255,255,0.12); }
.nav-login-btn {
    padding: 8px 20px; border-radius: 20px;
    background: rgba(255,255,255,0.08); border: none;
    color: #fff; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: background 0.2s;
}
.nav-login-btn:hover { background: rgba(255,255,255,0.15); }

/* === 主内容区 === */
.hero-center {
    display: flex; flex-direction: column; align-items: center;
    padding-top: 12vh; width: 100%; max-width: 640px; margin: 0 auto;
}

/* === 时钟 + 日期 背景蒙版 === */
.hero-time-mask {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 24px 40px;
    margin-bottom: 40px;
}

/* === 时钟 === */
.hero-clock {
    font-size: clamp(72px, 16vw, 160px);
    font-weight: 200;
    letter-spacing: -0.04em;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-family: 'SF Pro Display', -apple-system, 'Helvetica Neue', sans-serif;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

/* === 日期 === */
.hero-date {
    font-size: 15px; font-weight: 400;
    color: rgba(255,255,255,0.8);
    text-align: center; margin-top: 8px;
    letter-spacing: 0.3px;
}

/* === 搜索框 === */
.search-wrap {
    width: 100%; max-width: 560px; position: relative; z-index: 30;
}
.search-bar {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; height: 56px;
    padding: 0 8px 0 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-bar:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.15);
}
.search-bar:focus-within {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 4px rgba(6,182,212,0.1);
}

/* 引擎选择 */
.search-engine {
    display: flex; align-items: center; gap: 8px;
    padding: 0 16px; height: 100%;
    border: none; background: none;
    color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 500;
    cursor: pointer; border-right: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px 0 0 16px;
    min-width: 80px;
    transition: background 0.15s;
}
.search-engine:hover { background: rgba(255,255,255,0.05); }
.search-engine-name { white-space: nowrap; }

/* 引擎下拉 */
.search-engine-list {
    position: absolute; top: calc(100% + 8px); left: 0;
    background: rgba(28,28,30,0.95); backdrop-filter: blur(40px);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    min-width: 160px; z-index: 100;
    border: 1px solid rgba(255,255,255,0.08);
    animation: slideDown 0.15s ease;
}
.search-engine-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px; cursor: pointer;
    transition: background 0.12s; font-size: 14px;
    color: rgba(255,255,255,0.8);
}
.search-engine-item:hover { background: rgba(255,255,255,0.06); }
@keyframes slideDown { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }

/* 搜索输入 */
.search-field {
    flex: 1; background: none; border: none; outline: none;
    padding: 0 16px; font-size: 15px; color: #fff; height: 100%;
}
.search-field::placeholder { color: rgba(255,255,255,0.3); }

/* 发送按钮 */
.search-send {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border: none; color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-send:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(6,182,212,0.35); }
.search-send:active { transform: scale(0.97); }

/* 搜索历史 */
.search-history-list {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: rgba(28,28,30,0.95); backdrop-filter: blur(40px);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    max-height: 260px; overflow-y: auto; z-index: 50;
    border: 1px solid rgba(255,255,255,0.08);
}
.search-history-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.3);
}
.search-history-item {
    display: flex; align-items: center; padding: 10px 16px;
    cursor: pointer; transition: background 0.12s;
    font-size: 14px; color: rgba(255,255,255,0.6);
}
.search-history-item:hover { background: rgba(255,255,255,0.04); }

/* === Glass Card === */
.glass-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* === Footer — 固定视图底部，最底层 === */
.site-footer {
    position: fixed; bottom: 0; left: 0; width: 100%;
    text-align: center; padding: 16px 24px;
    color: rgba(255,255,255,0.3); font-size: 12px;
    z-index: 1;
    pointer-events: none;
}
.site-footer a,
.site-footer div {
    pointer-events: auto;
}

[v-cloak] { display: none !important; }

/* === Web Card 3D === */
.web-overlay {
    position: absolute; inset: 0; border-radius: 1.5rem; mix-blend-mode: screen;
    --web-x: 80%; --web-y: 20%;
    background-image: repeating-radial-gradient(circle at var(--web-x) var(--web-y), rgba(255,255,255,0.1) 0 3px, transparent 3px 22px),
        repeating-linear-gradient(60deg, rgba(255,255,255,0.05) 0 3px, transparent 3px 22px),
        repeating-linear-gradient(120deg, rgba(255,255,255,0.05) 0 3px, transparent 3px 22px);
    will-change: transform;
}
.web-depth {
    position: absolute; inset: 0; border-radius: 1.5rem; pointer-events: none; mix-blend-mode: screen;
    --web-x: 80%; --web-y: 20%;
    background: radial-gradient(circle at var(--web-x) var(--web-y), rgba(255,255,255,0.15) 0 60px, rgba(255,255,255,0) 120px);
    will-change: transform;
}

/* === Add Card === */
.add-card {
    border: 1.5px dashed rgba(255,255,255,0.12);
    border-radius: 16px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.25s;
}
.add-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.25); }

/* === Hero Layout === */
.hero-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) {
    .hero-layout { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .hero-layout .web-card:first-child { grid-column: span 2; }
}

/* === Default Icon === */
.def-icon {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white; font-weight: 600; border-radius: 10px;
}

/* === Delete Button === */
.del-btn {
    position: absolute; top: 8px; right: 8px;
    width: 22px; height: 22px;
    background: rgba(0,0,0,0.5); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: #fff; cursor: pointer;
    opacity: 0; transition: 0.2s;
}
.glass-card:hover .del-btn { opacity: 1; }

/* === File Label === */
.file-label {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 10px;
    border: 1px dashed rgba(255,255,255,0.15); border-radius: 10px;
    cursor: pointer; color: rgba(255,255,255,0.4); font-size: 13px; transition: 0.2s;
}
.file-label:hover { border-color: #22d3ee; color: white; background: rgba(255,255,255,0.03); }

.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* === Dark Mode === */
[data-theme="dark"] body { background: #000; }
