/* 全局样式重置 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; min-height: 100vh; overflow-x: hidden; /* 隐藏滚动条但保留滚动功能 */ scrollbar-width: none; /* Firefox */ -ms-overflow-style: none; /* IE and Edge */ } /* 隐藏 Webkit 浏览器的滚动条 */ body::-webkit-scrollbar, html::-webkit-scrollbar, *::-webkit-scrollbar { display: none; } /* 全局隐藏滚动条但保留滚动功能 */ html { scrollbar-width: none; /* Firefox */ -ms-overflow-style: none; /* IE and Edge */ } /* 容器样式 */ .container { min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; } /* 头部样式 */ .header { text-align: center; padding: 3rem 2rem 2rem; background: linear-gradient(135deg, rgba(144, 238, 144, 0.15), rgba(152, 251, 152, 0.15)); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.2); } .header h1 { font-size: 2.5rem; font-weight: 700; background: linear-gradient(135deg, #228B22, #32CD32); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .header h1 i { margin-right: 0.5rem; background: linear-gradient(135deg, #228B22, #32CD32); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .subtitle { font-size: 1.1rem; color: #666; font-weight: 300; } /* 主要内容区域 */ .main-content { flex: 1; padding: 2rem; max-width: 800px; margin: 0 auto; width: 100%; } /* 查询按钮区域 */ .query-section { text-align: center; margin-bottom: 2rem; } .query-btn { background: linear-gradient(135deg, #228B22, #32CD32); color: white; border: none; padding: 1rem 2rem; font-size: 1.1rem; font-weight: 600; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3); display: inline-flex; align-items: center; gap: 0.5rem; min-width: 200px; justify-content: center; } .query-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34, 139, 34, 0.4); background: linear-gradient(135deg, #1e7e1e, #2eb82e); } .query-btn:active { transform: translateY(0); } .query-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; } /* 加载动画 */ .loading { text-align: center; padding: 2rem; } .spinner { width: 50px; height: 50px; border: 4px solid #f3f3f3; border-top: 4px solid #4a90e2; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .loading p { color: #666; font-size: 1rem; } /* IP信息卡片 */ .ip-info { animation: fadeInUp 0.6s ease; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } .ip-card { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-radius: 20px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); } .ip-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid #f0f0f0; } .ip-header i { font-size: 1.5rem; color: #4a90e2; } .ip-header h2 { font-size: 1.5rem; font-weight: 600; color: #333; } .ip-display { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; padding: 1.5rem; background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(80, 200, 120, 0.1)); border-radius: 15px; border: 2px solid rgba(74, 144, 226, 0.2); } .ip-address { font-size: 2rem; font-weight: 700; font-family: 'Courier New', monospace; color: #2c3e50; background: linear-gradient(135deg, #4a90e2, #50c878); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .copy-btn { background: #4a90e2; color: white; border: none; padding: 0.5rem; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; font-size: 1rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; } .copy-btn:hover { background: #3a7bc8; transform: scale(1.1); } .ip-details { display: grid; gap: 1rem; } .detail-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem; background: rgba(248, 249, 250, 0.8); border-radius: 10px; transition: all 0.3s ease; } .detail-item:hover { background: rgba(74, 144, 226, 0.1); transform: translateX(5px); } .detail-item i { color: #4a90e2; width: 20px; text-align: center; } .detail-item .label { font-weight: 600; color: #555; min-width: 80px; } .detail-item .value { color: #333; font-weight: 500; } /* IP地址说明区域 */ .ip-explanation { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-radius: 20px; padding: 2rem; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); } .ip-explanation h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 1.3rem; color: #333; } .ip-explanation h3 i { color: #4a90e2; } .ip-explanation p { color: #666; line-height: 1.8; margin-bottom: 1.5rem; } .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; } .feature-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; background: rgba(248, 249, 250, 0.8); border-radius: 12px; transition: all 0.3s ease; } .feature-item:hover { background: rgba(74, 144, 226, 0.1); transform: translateY(-2px); } .feature-item i { color: #4a90e2; font-size: 1.5rem; margin-top: 0.2rem; } .feature-item h4 { font-size: 1rem; font-weight: 600; color: #333; margin-bottom: 0.3rem; } .feature-item p { font-size: 0.9rem; color: #666; line-height: 1.5; margin: 0; } /* 错误信息 */ .error-message { text-align: center; padding: 2rem; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-radius: 20px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 99, 99, 0.3); animation: fadeInUp 0.6s ease; } .error-message i { font-size: 3rem; color: #ff6b6b; margin-bottom: 1rem; } .error-message p { color: #666; font-size: 1.1rem; margin-bottom: 1.5rem; } .retry-btn { background: #ff6b6b; color: white; border: none; padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 600; border-radius: 25px; cursor: pointer; transition: all 0.3s ease; } .retry-btn:hover { background: #ff5252; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); } /* 页脚 */ .footer { text-align: center; padding: 2rem; background: rgba(248, 249, 250, 0.8); backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, 0.2); color: #666; font-size: 0.9rem; } /* 响应式设计 */ @media (max-width: 768px) { .header { padding: 2rem 1rem 1.5rem; } .header h1 { font-size: 2rem; } .main-content { padding: 1rem; } .ip-card, .ip-explanation { padding: 1.5rem; } .ip-address { font-size: 1.5rem; } .ip-display { flex-direction: column; gap: 1rem; } .features { grid-template-columns: 1fr; } .detail-item { flex-direction: column; align-items: flex-start; gap: 0.3rem; } .detail-item .label { min-width: auto; } } @media (max-width: 480px) { .header h1 { font-size: 1.8rem; } .query-btn { padding: 0.875rem 1.5rem; font-size: 1rem; min-width: 180px; } .ip-address { font-size: 1.3rem; } .ip-card, .ip-explanation { padding: 1rem; } }