/* ========================================================
   方案二：Aurora Glass（极简晨曦毛玻璃风 - 全站正式样式）
   ======================================================== */

:root {
    --aurora-bg: #f8fafc;
    --aurora-card: rgba(255, 255, 255, 0.85);
    --aurora-border: rgba(226, 232, 240, 0.8);
    --aurora-text-main: #0f172a;
    --aurora-text-sub: #64748b;
    --aurora-primary: #0284c7;
    --aurora-gradient: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
    --aurora-accent: #0ea5e9;
    --aurora-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f1f5f9;
    background-image: 
        radial-gradient(at 10% 20%, rgba(14, 165, 233, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(20, 184, 166, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 10%, rgba(99, 102, 241, 0.05) 0px, transparent 60%);
    min-height: 100vh;
    padding: 24px 20px;
    line-height: 1.6;
    color: var(--aurora-text-main);
}

.container {
    max-width: 920px;
    margin: 0 auto;
}

/* 现代一体化 Header 导航栏（整合 Logo、菜单、语言切换） */
.site-header-nav {
    background: var(--aurora-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--aurora-border);
    border-radius: 16px;
    box-shadow: var(--aurora-shadow);
    margin-bottom: 24px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* 左侧品牌与菜单 */
.nav-left-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.site-logo {
    width: 58px;
    height: 58px;
    filter: drop-shadow(0 6px 14px rgba(2, 132, 199, 0.35));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

.brand-link:hover .site-logo {
    transform: scale(1.12) translateY(-2px);
}

.brand-title {
    font-size: 1.35em;
    font-weight: 700;
    background: var(--aurora-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* 紧随 Logo 的导航菜单（向前移） */
.main-menu {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-menu a {
    display: block;
    padding: 7px 16px;
    color: var(--aurora-text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.main-menu a:hover {
    background: rgba(2, 132, 199, 0.08);
    color: var(--aurora-primary);
}

.main-menu a.active {
    background: var(--aurora-gradient);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* 右侧多语言切换器（并入导航栏右侧） */
.nav-lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--aurora-text-sub);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-lang-switcher a {
    color: var(--aurora-text-sub);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-lang-switcher a:hover {
    color: var(--aurora-primary);
    background: rgba(2, 132, 199, 0.08);
}

.nav-lang-switcher a.active {
    color: var(--aurora-primary);
    font-weight: 700;
    background: rgba(2, 132, 199, 0.12);
}

/* 英雄区副标题与说明 */
.hero-banner {
    text-align: center;
    padding: 16px 20px 24px 20px;
}

.hero-banner h1 {
    font-size: 2.2em;
    font-weight: 800;
    background: var(--aurora-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}

.hero-banner .subtitle {
    font-size: 1.05em;
    color: var(--aurora-text-sub);
    font-weight: 400;
}

/* 搜索区域 */
.search-section {
    background: var(--aurora-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--aurora-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--aurora-shadow);
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

#ipInput {
    flex: 1;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 15px;
    color: var(--aurora-text-main);
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#ipInput:focus {
    border-color: var(--aurora-primary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

#ipInput::placeholder {
    color: #94a3b8;
}

button {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    background: var(--aurora-gradient);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

button:hover {
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.quick-actions {
    display: flex;
    justify-content: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #e2e8f0;
    color: #0369a1;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #f0f9ff;
    border-color: #bae6fd;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15);
    transform: translateY(-1px);
}

/* 加载动画 */
.loading {
    background: var(--aurora-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--aurora-border);
    border-radius: 16px;
    padding: 36px;
    text-align: center;
    box-shadow: var(--aurora-shadow);
    margin-bottom: 20px;
}

.loading p {
    color: var(--aurora-primary);
    font-weight: 500;
}

.spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 16px;
    border: 3.5px solid #e0f2fe;
    border-top: 3.5px solid var(--aurora-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误提示 */
.error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
    padding: 14px 18px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.95em;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.06);
}

/* IP信息展示 */
.ip-info {
    background: var(--aurora-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--aurora-border);
    border-radius: 16px;
    padding: 26px;
    box-shadow: var(--aurora-shadow);
    margin-bottom: 20px;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.info-header h2 {
    color: var(--aurora-text-main);
    font-size: 1.7em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ip-type {
    padding: 6px 14px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.info-item:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px -3px rgba(0, 0, 0, 0.05);
}

.info-label {
    font-size: 0.85em;
    color: var(--aurora-text-sub);
    font-weight: 500;
}

.info-value {
    font-size: 1.05em;
    color: var(--aurora-text-main);
    font-weight: 600;
    word-break: break-all;
}

/* 地图容器 */
.map-container {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.map-container h3 {
    color: var(--aurora-text-main);
    margin-bottom: 12px;
    font-size: 1.15em;
    font-weight: 600;
}

.map-link {
    padding: 16px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95em;
}

.map-link p {
    color: var(--aurora-text-sub);
    margin-bottom: 8px;
}

.map-link a {
    color: var(--aurora-primary);
    text-decoration: none;
    font-weight: 600;
}

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

/* 使用说明 */
.instructions {
    background: var(--aurora-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--aurora-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--aurora-shadow);
    margin-bottom: 20px;
}

.instructions h3 {
    color: var(--aurora-text-main);
    margin-bottom: 16px;
    font-size: 1.2em;
    font-weight: 600;
}

.instructions ul {
    list-style: none;
    padding-left: 0;
}

.instructions li {
    padding: 8px 0;
    color: #334155;
    font-size: 0.95em;
    position: relative;
    padding-left: 20px;
}

.instructions li::before {
    content: "•";
    color: var(--aurora-primary);
    font-weight: bold;
    position: absolute;
    left: 4px;
}

.api-notice {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    border-radius: 6px;
    color: #15803d;
    font-size: 0.9em;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 24px 0;
    color: var(--aurora-text-sub);
    font-size: 0.88em;
}

footer p {
    margin: 6px 0;
}

footer a {
    color: var(--aurora-primary);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Cookie 横幅 */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    color: #f8fafc;
    padding: 16px 20px;
    border-radius: 14px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 1000;
}

.cookie-banner p {
    font-size: 13.5px;
    line-height: 1.5;
}

.cookie-banner a {
    color: #38bdf8;
    text-decoration: underline;
}

.cookie-banner button {
    background: var(--aurora-gradient);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

/* ============================================================
   关于页面与隐私页面卡片化美化样式 (About & Legal Cards)
============================================================ */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    background: var(--aurora-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--aurora-border);
    border-radius: 18px;
    padding: 26px 28px;
    box-shadow: var(--aurora-shadow);
    transition: all 0.25s ease;
}

.about-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 12px 30px -8px rgba(14, 165, 233, 0.12);
}

.about-card h2 {
    color: var(--aurora-text-main);
    font-size: 1.28rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed rgba(226, 232, 240, 0.8);
    padding-bottom: 10px;
}

.about-card p {
    color: var(--aurora-text-sub);
    line-height: 1.75;
    font-size: 0.96rem;
    margin-bottom: 10px;
}

.about-card p:last-child {
    margin-bottom: 0;
}

/* 核心功能网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.feature-item {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-item:hover {
    transform: translateY(-3px);
    border-color: var(--aurora-primary);
    box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.12);
}

.feature-icon {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 12px;
    background: rgba(2, 132, 199, 0.08);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.feature-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--aurora-text-main);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.88rem;
    color: var(--aurora-text-sub);
    line-height: 1.6;
    margin-bottom: 0;
}

/* 使用场景 & 技术规格徽章列表 */
.specs-list, .use-cases, .custom-bullet-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.specs-list li, .use-cases li, .custom-bullet-list li {
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--aurora-text-main);
    font-size: 0.93rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.specs-list li strong, .use-cases li strong {
    color: var(--aurora-primary);
    white-space: nowrap;
}

.specs-list li::before, .use-cases li::before, .custom-bullet-list li::before {
    content: "✦";
    color: var(--aurora-teal);
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 免责声明提示框 */
.disclaimer-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 10px;
}

.disclaimer-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.disclaimer-box li {
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.disclaimer-box li::before {
    content: "•";
    color: #d97706;
    font-weight: bold;
    position: absolute;
    left: 4px;
}

/* 更新日志时间轴 */
.changelog-timeline {
    position: relative;
    padding-left: 24px;
    margin-top: 14px;
    border-left: 2px solid rgba(2, 132, 199, 0.2);
}

.timeline-entry {
    position: relative;
    margin-bottom: 20px;
}

.timeline-entry:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -31px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--aurora-primary);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}

.timeline-tag {
    display: inline-block;
    background: rgba(2, 132, 199, 0.1);
    color: var(--aurora-primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    padding: 14px 18px;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-content li {
    font-size: 0.9rem;
    color: var(--aurora-text-sub);
    position: relative;
    padding-left: 18px;
}

.timeline-content li::before {
    content: "✓";
    color: var(--aurora-teal);
    font-size: 0.85rem;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 返回主页按钮 */
.back-link-wrapper {
    text-align: center;
    margin-top: 10px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--aurora-primary);
    border: 1px solid var(--aurora-border);
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--aurora-shadow);
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: var(--aurora-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.25);
}

/* 响应式调整 */
@media (max-width: 640px) {
    body {
        padding: 12px 10px;
    }
    .search-box {
        flex-direction: column;
    }
    button {
        justify-content: center;
    }
    .info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .cookie-banner {
        flex-direction: column;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .about-card {
        padding: 20px 16px;
    }
}

