/* 本地字体 - DM Sans */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/dm-sans-latin-300-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/dm-sans-latin-ext-300-normal.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/dm-sans-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/dm-sans-latin-ext-500-normal.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/dm-sans-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/dm-sans-latin-ext-700-normal.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/space-grotesk-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/space-grotesk-latin-ext-600-normal.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/space-grotesk-latin-ext-700-normal.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/jetbrains-mono-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/jetbrains-mono-latin-ext-500-normal.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
    --bg-deep: #f5f6fa;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.72);
    --bg-card-solid: #ffffff;
    --bg-card-hover: rgba(240, 241, 247, 0.85);
    --accent: #5b52e6;
    --accent-light: #7c6de8;
    --accent-glow: rgba(91, 82, 230, 0.1);
    --text-primary: #1a1d2e;
    --text-secondary: #4a5068;
    --text-muted: #8891a8;
    --border: rgba(30, 40, 80, 0.06);
    --border-accent: rgba(91, 82, 230, 0.2);
    --success: #0d9668;
    --success-bg: rgba(13, 150, 104, 0.08);
    --error: #dc2626;
    --error-bg: rgba(220, 38, 38, 0.08);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.03);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --glow-opacity: 0;
}

[data-theme="dark"] {
    --bg-deep: #0a0e1a;
    --bg-surface: #111827;
    --bg-card: rgba(26, 34, 53, 0.75);
    --bg-card-solid: #1a2235;
    --bg-card-hover: rgba(31, 42, 66, 0.88);
    --accent: #7c73ff;
    --accent-light: #a78bfa;
    --accent-glow: rgba(124, 115, 255, 0.15);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(148, 163, 184, 0.06);
    --border-accent: rgba(124, 115, 255, 0.25);
    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.1);
    --error: #f87171;
    --error-bg: rgba(248, 113, 113, 0.1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.2);
    --glass-bg: rgba(26, 34, 53, 0.55);
    --glass-border: rgba(148, 163, 184, 0.08);
    --glow-opacity: 1;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-deep);
    min-height: 100vh;
    color: var(--text-primary);
    position: relative;
    transition: background 0.35s ease, color 0.35s ease;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 600px 400px at 20% 20%, rgba(108, 99, 255, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 80% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 90%, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: var(--glow-opacity);
    transition: opacity 0.3s;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 24px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.header h1 .icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 2rem;
}

.header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.search-box {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

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

.search-input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    transition: all 0.25s;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-btn {
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.search-btn:hover {
    background: #7c74ff;
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: translateY(-1px);
}

.search-btn:active {
    transform: translateY(0);
}

/* 域名搜索建议下拉框 */
.search-box {
    position: relative;
    z-index: 1000;
}

.suggest-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    animation: suggestSlideIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.suggest-dropdown.show {
    display: block;
}

.suggest-dropdown::-webkit-scrollbar {
    width: 6px;
}

.suggest-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.suggest-dropdown::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.suggest-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.suggest-item {
    padding: 12px 16px;
    cursor: pointer;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggest-item::before {
    content: '🔍';
    font-size: 0.8rem;
    opacity: 0.5;
}

.suggest-item:last-child {
    border-bottom: none;
}

.suggest-item:hover,
.suggest-item.active {
    background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 100%);
    color: var(--accent);
    padding-left: 20px;
}

.examples {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.example-tag {
    padding: 6px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.example-tag:hover {
    border-color: var(--border-accent);
    color: var(--accent-light);
    background: rgba(108, 99, 255, 0.08);
}

/* === Landing Page Styles === */
.examples-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-right: 4px;
}

.landing-header {
    padding-bottom: 0;
}

.landing-header h1 {
    margin-bottom: 8px;
}

.brand-name {
    background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.landing-sub {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 300;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 36px 0 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 300;
}

.landing-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

@media (max-width: 600px) {
    .landing-features {
        grid-template-columns: 1fr;
    }
    .landing-stats {
        gap: 28px;
    }
}

/* === End Landing Page Styles === */

.result-container {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}

.domain-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-active {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.status-inactive {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.cache-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.info-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.info-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.info-card h3 {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
    margin-bottom: 8px;
}

.info-card .value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-all;
    line-height: 1.4;
}

.raw-data {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    overflow-x: auto;
    position: relative;
}

.raw-data h3 {
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 500;
}

.copy-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.copy-btn:hover {
    border-color: var(--border-accent);
    color: var(--accent-light);
}

.copy-btn.copied {
    border-color: var(--success);
    color: var(--success);
}

.raw-data pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text-muted);
}

.service-section {
    margin-bottom: 28px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
}

.service-card h3 {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
    margin-bottom: 14px;
}

.ip-list, .ns-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ip-item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.ip-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.ip-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 4px;
}

.ip-location {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.ip-geo, .ip-org, .ip-isp {
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.ip-geo {
    color: var(--text-secondary);
}

.ip-org, .ip-isp {
    color: var(--accent-light);
    background: rgba(108, 99, 255, 0.08);
}

.ip-empty {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.ns-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: var(--text-primary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.ns-item:last-child {
    border-bottom: none;
}

/* 域名历史时间线 */
.history-section {
    margin-bottom: 28px;
}

/* 变更详情部分 */
.timeline-changes {
    margin-bottom: 24px;
}

.timeline-changes h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.timeline-change-item {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.timeline-change-deco {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    flex-shrink: 0;
}

.timeline-change-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
    margin-top: 8px;
}

.timeline-change-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin: 4px 0;
}

.timeline-change-item:last-child .timeline-change-line {
    display: none;
}

.timeline-change-card {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 8px;
}

.timeline-change-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 8px;
}

.timeline-change-content {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.88rem;
}

.timeline-change-label {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 70px;
    flex-shrink: 0;
}

.timeline-change-old {
    color: var(--error);
    text-decoration: line-through;
    opacity: 0.7;
}

.timeline-change-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

.timeline-change-new {
    color: var(--accent);
    font-weight: 500;
}

/* 历史记录部分 */
.timeline-history {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    max-height: 400px;
    overflow-y: auto;
}

.timeline-history h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.timeline-history-item {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.timeline-history-deco {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    flex-shrink: 0;
}

.timeline-history-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
    margin-top: 8px;
}

.timeline-history-dot.dot-active {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.timeline-history-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin: 4px 0;
}

.timeline-history-card {
    flex: 1;
    padding: 8px 0 16px 0;
    border-bottom: 1px solid var(--border);
}

.timeline-history-item:last-child .timeline-history-card {
    border-bottom: none;
}

.timeline-history-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 6px;
}

.timeline-history-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.timeline-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

.tag-first {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.tag-current {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent);
}

.tag-history {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-muted);
}

.timeline-field {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.timeline-latest .timeline-history-card {
    background: rgba(99, 102, 241, 0.03);
    margin: 0 -20px;
    padding: 8px 20px 16px 20px;
    border-radius: var(--radius-sm);
}

.no-history {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 12px 0;
}

.error-message {
    background: var(--error-bg);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: var(--error);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.footer {
    text-align: center;
    color: var(--text-muted);
    margin-top: 48px;
    font-size: 0.82rem;
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.footer a {
    color: var(--accent-light);
    text-decoration: none;
}

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

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-toggle:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
    transform: scale(1.1) rotate(12deg);
}

.theme-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    .container { padding: 36px 16px; }
    .header h1 { font-size: 1.7rem; }
    .search-form { flex-direction: column; }
    .search-btn { width: 100%; }
    .info-grid { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .result-header { flex-direction: column; text-align: center; }
    .result-container { padding: 24px 18px; }
    .theme-toggle { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 1.1rem; }
}

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

/* Loading spinner */
.result-spinner {
    text-align: center;
    padding: 48px 0;
}
.result-spinner::after {
    content: '';
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* Smooth result swap */
.result-area {
    transition: opacity 0.3s;
}

.result-area.fading {
    opacity: 0;
}

/* AI 分析区域 - 独立卡片样式 */
#ai-slot {
    width: 100%;
    margin-bottom: 20px;
}

.ai-analysis {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-analysis:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
}

/* 折叠/展开状态 */
.ai-analysis.collapsed .ai-content,
.ai-analysis.collapsed .ai-meta {
    display: none;
}

.ai-analysis.expanded .ai-content,
.ai-analysis.expanded .ai-meta {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* 折叠按钮 */
.ai-toggle-btn {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-family: inherit;
}

.ai-toggle-btn:hover {
    background: var(--bg-card-hover);
}

.ai-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-toggle-icon {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ai-analysis.expanded .ai-toggle-icon {
    transform: rotate(180deg);
}

.ai-status-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* AI内容区 */
.ai-content {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

/* AI元信息 */
.ai-meta {
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    flex-wrap: wrap;
    align-items: center;
}

/* 刷新按钮 */
.refresh-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.refresh-ai-btn:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.refresh-ai-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.refresh-ai-btn.loading .btn-icon {
    animation: spin 0.7s linear infinite;
}

/* AI加载状态 */
.ai-loading {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-muted);
    font-style: italic;
}

.ai-cursor {
    display: inline-block;
    font-weight: bold;
    animation: ai-blink 1s step-end infinite;
    color: var(--accent);
}

@keyframes ai-blink {
    50% { opacity: 0; }
}

/* AI错误/提示 */
.ai-error {
    text-align: center;
    padding: 24px;
    color: var(--error);
    background: var(--error-bg);
    border-radius: 8px;
    margin: 0 24px 20px;
}

.ai-notice {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px dashed var(--border);
    margin: 0 24px 20px;
}
