* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eaeaea;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.8em;
    font-weight: 700;
    background: linear-gradient(45deg, #2196F3, #9C27B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* 介绍区域 */
.intro-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
}

.intro-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2196F3;
    font-size: 1.8em;
    position: relative;
}

.intro-section h2:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #9C27B0;
}

.intro-section h3 {
    color: #34495e;
    margin: 20px 0 15px 0;
    font-size: 1.4em;
    display: flex;
    align-items: center;
}

.intro-section h3:before {
    content: '•';
    color: #2196F3;
    font-weight: bold;
    font-size: 1.5em;
    margin-right: 10px;
}

.intro-section p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.1em;
}

.intro-section ul {
    padding-left: 30px;
    margin: 15px 0;
}

.intro-section li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #555;
    position: relative;
    padding-left: 5px;
}

/* 输入区域 */
.input-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
}

.input-group label {
    display: block;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.2em;
    display: flex;
    align-items: center;
}

.input-group label:before {
    content: '🔍';
    margin-right: 10px;
    font-size: 1.2em;
}

#domains {
    width: 100%;
    height: 200px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1em;
    font-family: 'Consolas', 'Monaco', monospace;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fafafa;
    line-height: 1.5;
}

#domains:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    background: white;
}

#domains::placeholder {
    color: #aaa;
    font-size: 0.95em;
}

.button-group {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-clear {
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    background: linear-gradient(135deg, #1976D2, #1565C0);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #388E3C, #2E7D32);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-clear {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    color: white;
    box-shadow: 0 4px 15px rgba(158, 158, 158, 0.3);
}

.btn-clear:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 158, 158, 0.4);
    background: linear-gradient(135deg, #757575, #616161);
}

/* 结果区域 */
.results-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
}

.results-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2196F3;
    font-size: 1.8em;
    position: relative;
}

.results-section h2:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #9C27B0;
}

.results-info {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-radius: 10px;
    flex-wrap: wrap;
}

.results-info span {
    font-size: 1.1em;
    color: #555;
    font-weight: 500;
}

.results-info span:not(:first-child) {
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
}

.results-info span strong {
    color: #2c3e50;
    font-weight: 600;
}

#totalCount {
    color: #2196F3;
    font-weight: bold;
    font-size: 1.2em;
}

#normalCount {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2em;
}

#blockedCount {
    color: #F44336;
    font-weight: bold;
    font-size: 1.2em;
}

#errorCount {
    color: #FF9800;
    font-weight: bold;
    font-size: 1.2em;
}

.table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#resultsTable {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

#resultsTable thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

#resultsTable th {
    padding: 18px 15px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 1.1em;
    border: none;
    position: relative;
    white-space: nowrap;
}

#resultsTable th:after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.3);
}

#resultsTable th:last-child:after {
    display: none;
}

#resultsTable tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

#resultsTable tbody tr:hover {
    background-color: #f9f9f9;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    z-index: 1;
    position: relative;
}

#resultsTable tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

#resultsTable tbody tr:nth-child(even):hover {
    background-color: #f1f3f4;
}

#resultsTable td {
    padding: 16px 15px;
    color: #444;
    font-size: 1.05em;
    vertical-align: middle;
    line-height: 1.5;
}

.domain-cell {
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.1em;
}

.status-cell {
    font-weight: bold;
    padding: 6px 15px;
    border-radius: 20px;
    text-align: center;
    display: inline-block;
    min-width: 80px;
}

.status-normal {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-blocked {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-error {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-checking {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-retry {
    background: linear-gradient(135deg, #e2e3e5, #d6d8db);
    color: #383d41;
    border: 1px solid #d6d8db;
}

.message-cell {
    max-width: 300px;
    word-break: break-word;
    line-height: 1.6;
}

.time-cell {
    color: #666;
    font-size: 0.95em;
    white-space: nowrap;
}

.btn-retry {
    padding: 8px 20px;
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-retry:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
    background: linear-gradient(135deg, #F57C00, #EF6C00);
}

.btn-retry:active {
    transform: translateY(0);
}

.btn-retry:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 友情链接 */
footer {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    text-align: center;
}

.friend-links h4 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.6em;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.friend-links h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2196F3, #9C27B0);
    border-radius: 2px;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.friend-link {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
    border: 2px solid transparent;
    font-size: 1.1em;
    min-width: 180px;
    text-align: center;
}

.friend-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #764ba2, #667eea);
    border-color: white;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 25px 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary, .btn-clear {
        width: 100%;
        justify-content: center;
    }
    
    .results-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .results-info span:not(:first-child) {
        padding-left: 0;
        border-left: none;
        padding-top: 10px;
        border-top: 1px solid #e0e0e0;
    }
    
    .links-container {
        flex-direction: column;
        align-items: center;
    }
    
    .friend-link {
        width: 100%;
        max-width: 300px;
    }
    
    .intro-section, .input-section, .results-section, footer {
        padding: 20px 15px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* 高亮动画 */
@keyframes highlight {
    0% { background-color: #fffde7; }
    100% { background-color: transparent; }
}

.highlight {
    animation: highlight 2s ease;
}