/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(102, 126, 234, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* 背景装饰 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 25s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, rgba(245, 87, 108, 0.1) 100%);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.25) 0%, rgba(0, 242, 254, 0.1) 100%);
    bottom: -250px;
    right: -250px;
    animation-delay: 8s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, rgba(56, 249, 215, 0.08) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 16s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-100px, 100px) scale(0.9); }
}

/* 容器 */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}

.logo-icon {
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

/* Logo圆圈外环动画 */
.logo-circle-outer {
    stroke-dasharray: 113;
    stroke-dashoffset: 113;
    animation: drawCircle 2s ease-out forwards;
}

.logo:hover .logo-circle-outer {
    animation: rotateCircle 3s linear infinite;
}

/* Logo圆圈内环动画 */
.logo-circle-inner {
    stroke-dasharray: 75;
    stroke-dashoffset: 75;
    animation: drawCircle 2s ease-out 0.3s forwards;
}

.logo:hover .logo-circle-inner {
    animation: rotateCircleReverse 2s linear infinite;
}

/* Logo对勾动画 */
.logo-check {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: drawCheck 1s ease-out 0.8s forwards;
}

.logo:hover .logo-check {
    animation: checkPulse 1.5s ease-in-out infinite;
}

/* Logo中心点动画 */
.logo-dot {
    transform-origin: center;
    animation: dotPulse 2s ease-in-out 1s infinite;
}

/* 绘制圆圈动画 */
@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

/* 旋转圆圈动画 */
@keyframes rotateCircle {
    from {
        transform: rotate(0deg);
        transform-origin: center;
    }
    to {
        transform: rotate(360deg);
        transform-origin: center;
    }
}

/* 反向旋转动画 */
@keyframes rotateCircleReverse {
    from {
        transform: rotate(0deg);
        transform-origin: center;
    }
    to {
        transform: rotate(-360deg);
        transform-origin: center;
    }
}

/* 绘制对勾动画 */
@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* 对勾脉冲动画 */
@keyframes checkPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* 点脉冲动画 */
@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* 主内容 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 查询卡片 */
.query-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-header {
    margin-bottom: 30px;
}

.card-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.card-header button {
    float: right;
}

/* 输入组 */
.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.domain-input {
    width: 100%;
    padding: 18px 50px 18px 55px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

.domain-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.clear-btn:hover {
    color: var(--text-primary);
}

.check-btn {
    padding: 18px 35px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 建议标签 */
.suggestions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.suggestions-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.suggestion-tag {
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.suggestion-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.3s;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-state p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* 结果卡片 */
.result-card {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    animation: slideUp 0.4s ease-out;
}

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

.result-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.result-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.result-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.result-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.result-icon.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.result-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.result-domain {
    color: var(--text-secondary);
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 100px;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.result-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-md);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.action-btn.secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.action-btn.secondary:hover {
    background: var(--primary);
    color: white;
}

/* 批量查询 */
.batch-input-area {
    margin-bottom: 30px;
}

.batch-textarea {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
    resize: vertical;
    margin-bottom: 15px;
}

.batch-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.batch-actions {
    display: flex;
    gap: 15px;
}

.batch-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.batch-result-item {
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideUp 0.3s ease-out;
}

.batch-result-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.batch-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.batch-result-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.batch-result-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 历史记录 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    cursor: pointer;
}

.history-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.history-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.history-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.history-item-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.history-item-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

.history-item-time {
    color: var(--text-secondary);
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* 特性展示 */
.features-section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 页脚 */
.footer {
    margin-top: 3rem;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-disclaimer {
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.footer-disclaimer h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-disclaimer > p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.disclaimer-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.point-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.point-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.point-item .icon {
    color: #10b981;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.point-item span:last-child {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.warning-text {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    line-height: 1.6;
    font-size: 0.95rem;
}

.warning-text strong {
    color: #78350f;
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.footer-copyright p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-copyright p:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.footer-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Toast通知 */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    font-weight: 500;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .nav {
        width: 100%;
        justify-content: space-around;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .input-group {
        flex-direction: column;
    }

    .query-card {
        padding: 25px;
    }

    .result-header {
        flex-direction: column;
        text-align: center;
    }

    .result-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .batch-actions {
        flex-direction: column;
    }

    .footer-disclaimer {
        padding: 1.5rem;
    }

    .disclaimer-points {
        grid-template-columns: 1fr;
    }

    .point-item {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .footer-disclaimer {
        padding: 1rem;
    }

    .footer-disclaimer h3 {
        font-size: 1.1rem;
    }

    .point-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .warning-text {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
}

