/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header nav {
    margin-top: 0.5rem;
}

header nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

header nav a:hover {
    color: white;
    text-decoration: underline;
}

/* 介绍区域 */
.intro-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.1rem;
    color: #666;
    margin: 1rem 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.feature h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

/* 日期分组 */
.year-month-group {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.year-month-group h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.days-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.day-item {
    display: block;
    padding: 0.8rem;
    background: #f7fafc;
    border-radius: 6px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.day-item:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
}

.day-date {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.day-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.page-link {
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.page-link:hover {
    background: #5a67d8;
}

.page-info {
    color: #4a5568;
}

/* 详情页样式 */
.detail-header {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-download {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #48bb78;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #38a169;
}

.btn-back {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #a0aec0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #718096;
}

/* 域名列表表格 */
.domain-list {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.domain-list table {
    width: 100%;
    border-collapse: collapse;
}

.domain-list th {
    background: #f7fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
}

.domain-list td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.domain-list tr:hover {
    background: #f7fafc;
}

.domain-list tr:nth-child(even) {
    background: #fafbfc;
}

.no-data {
    text-align: center;
    color: #a0aec0;
    padding: 2rem !important;
}

/* 友情链接 */
.friend-links {
    padding: 2rem 0;
    border-top: 2px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
}

.friend-links h4 {
    color: #4a5568;
    margin-bottom: 1.5rem;
    text-align: center;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.friend-link {
    color: #667eea;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    transition: all 0.3s;
}

.friend-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    text-decoration: none;
}

/* 页脚 */
footer {
    background: #2d3748;
    color: #cbd5e0;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 1rem 0;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .days-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .links-container {
        gap: 1rem;
    }
    
    .friend-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}