/* 笔画查字页面样式 */
.main-content {
    padding: 20px 0;
}

.section-header {
    margin: 30px 0 15px;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 10px;
}

.section-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.section-header p {
    color: #666;
    margin-top: 5px;
    font-size: 0.95rem;
}

.intro-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.intro-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

.bihua-method {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #eaeaea;
}

.bihua-method h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.bihua-method ol {
    padding-left: 20px;
}

.bihua-method li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.tip {
    background-color: #f0f7ff;
    border-left: 4px solid #4a90e2;
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
}

.tip p {
    margin: 0;
    color: #333;
}

.bihua-basic {
    margin-bottom: 30px;
}

.bihua-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.bihua-table th, .bihua-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.bihua-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.bihua-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.bihua-example {
    font-size: 1.8rem;
    font-weight: bold;
    display: inline-block;
    padding: 5px;
}

.bihua-stroke-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stroke-card {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.stroke-card:hover {
    transform: translateY(-5px);
}

.stroke-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.stroke-char {
    font-size: 3rem;
    font-weight: bold;
    display: block;
    margin: 10px 0;
    color: #4a90e2;
}

.stroke-examples {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

.bihua-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.bihua-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f7ff;
    color: #4a90e2;
    height: 60px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #d0e3ff;
}

.bihua-item:hover {
    background-color: #4a90e2;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.dictionary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.dictionary-list a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.dictionary-list a:hover {
    background-color: #4a90e2;
    color: #fff;
}

.popular-chars {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.char-tag {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f0f7ff;
    color: #4a90e2;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 1.1rem;
}

.char-tag:hover {
    background-color: #4a90e2;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.2);
}

.bihua-section {
    margin-bottom: 30px;
}

.bihua-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4rem;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* 笔画详情页样式 */
.bihua-detail-header {
    background-color: #f0f7ff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.bihua-detail-header h1 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.bihua-detail-header p {
    color: #666;
    font-size: 1.1rem;
}

.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.char-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px 10px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.char-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #4a90e2;
}

.char-item .char {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.char-item .pinyin {
    color: #4a90e2;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.char-item .meaning {
    color: #666;
    font-size: 0.8rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.pagination a:hover, .pagination a.active {
    background-color: #4a90e2;
    color: #fff;
}

.stroke-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 30px;
}

.stroke-navigation a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f0f7ff;
    color: #4a90e2;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 600;
}

.stroke-navigation a:hover {
    background-color: #4a90e2;
    color: #fff;
}

.stroke-navigation .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stroke-navigation .disabled:hover {
    background-color: #f0f7ff;
    color: #4a90e2;
    transform: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bihua-stroke-demo {
        flex-direction: column;
    }
    
    .stroke-card {
        min-width: 100%;
    }
    
    .bihua-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .char-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
}

@media (max-width: 480px) {
    .bihua-table th, .bihua-table td {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .bihua-example {
        font-size: 1.5rem;
    }
    
    .bihua-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .char-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .char-item .char {
        font-size: 1.8rem;
    }
}