/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 头部样式 */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

header h1 {
    color: #2c3e50;
    font-size: 1.5rem;
}

nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
}

nav a:hover {
    color: #3498db;
}

/* 主内容区 */
main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* 表单样式 */
.beian-form, .search-form, .verification-form, .admin-login-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn.secondary {
    background: #95a5a6;
}

.btn.secondary:hover {
    background: #7f8c8d;
}

.btn.success {
    background: #27ae60;
}

.btn.success:hover {
    background: #219a52;
}

.btn.warning {
    background: #f39c12;
}

.btn.warning:hover {
    background: #d68910;
}

.btn.danger {
    background: #e74c3c;
}

.btn.danger:hover {
    background: #c0392b;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* 消息样式 */
.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 记录网格 */
.record-grid, .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.record-card, .result-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.record-card h3, .result-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.domain {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.icp-number {
    color: #3498db;
    font-weight: 600;
}

.date {
    color: #95a5a6;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* 表格样式 */
.records-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.records-table th,
.records-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.records-table th {
    background: #34495e;
    color: white;
    font-weight: 600;
}

.records-table tr:hover {
    background: #f8f9fa;
}

.status {
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status.verified {
    background: #d4edda;
    color: #155724;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #3498db;
}

.pagination a.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 页脚样式 */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        display: flex;
        gap: 1rem;
    }
    
    nav a {
        margin-left: 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .record-grid, .results-grid {
        grid-template-columns: 1fr;
    }
    
    .records-table {
        display: block;
        overflow-x: auto;
    }
}
